get_job
Retrieve job details by ID, including logs, status, and snapshot, to monitor pipeline execution.
Instructions
Retrieve details of a job by job ID, such as user logs, code snapshot, project id. Get details of a specific job by its ID.
Human_readable_status in the response will be "Failed" for failed jobs, "Completed" for completed jobs.
Args: job_id: The ID of the job to retrieve.
Returns: JobInfo: Object containing job details id (str): The ID of the job. kind (str): The kind of job. user (str): The user who created the job. human_readable_status (str): Human-readable status of the job. created_at (Optional[str]): ISO formatted creation timestamp of the job. finished_at (Optional[str]): ISO formatted finish timestamp of the job. status (str): The status of the job. logs (Optional[str]): Concatenated user logs from the job. code_snapshot_path (Optional[Path]): Path to the code snapshot directory. ref (Optional[str]): The data commit reference when the job was run, i.e. the state of source tables for the job at that time. transactional_branch (Optional[str]): The transactional branch that was open when the job was run. project_yml (Optional[str]): The contents of the bauplan_project.yml file from the snapshot. project_files (Optional[dict[str, str]]): A dictionary of other project files from the snapshot, with filenames as keys and file contents as values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| user | Yes | ||
| human_readable_status | Yes | ||
| created_at | Yes | ||
| finished_at | Yes | ||
| status | Yes | ||
| logs | No | ||
| code_snapshot_path | No | ||
| ref | No | ||
| transactional_branch | No | ||
| project_yml | No | ||
| project_files | No |