Jobs and Job Status
- class indico.queries.jobs.JobStatus(id, wait=True, request_interval=0.2, timeout=None)
Status of a Job in the Indico Platform.
JobStatus is used to either wait for completion or query the status of an asynchronous job in the Indico Platform.
- Parameters
id (int) – id of the job to query for status.
wait (bool, optional) – Wait for the job to complete? Default is True
timeout (float or int, optional) – Timeout after this many seconds. Ignored if not wait. Defaults to None
- Returns
With the job result available in a result attribute. Note that the result will often be JSON but can also be a dict with the URL of a StorageObject on the Indico Platform.
- Return type
- Raises
IndicoTimeoutError – If wait is True, this error is raised if job has not completed after timeout seconds