fn job_task(session: SessionId, record: &JobRecord) -> DetailedTaskExpand description
Returns the task of a job of a session.
Ended jobs complete the task with the same result their tool returns when it waits for them, so failed jobs are tool errors.