.jobs.status Liatir.jobs.status() reads the current state of one async process job.
status(jobId: string): Promise<JobEntry>status(job_id) -> dict| Parameter | Type | Description |
|---|---|---|
jobId | string | Unique identifier for the job. |
| Parameter | Type | Description |
|---|---|---|
job_id | str | Unique identifier for the job. |
const job = await Liatir.jobs.status(jobId);
console.log('Status:', job.status.type);
console.log('Exit code:', job.status.exitCode);job = ctx.liatir.jobs.status(job_id)
print('Status:', job['status']['type'])
print('Exit code:', job['status'].get('exitCode'))Returns a JobEntry object. See .jobs.list for the full structure.
A job can be running, done, failed, or killed.