prisms_jobs.error_job¶
-
prisms_jobs.
error_job
(message, jobid=None, dbpath=None)[source]¶ Mark the job as ‘Error: message’ if possible
Parameters: - message (str) – Error message to save in JobDB.
- dbpath (str, optional) –
Path to JobDB database.
If not given, use default database.
- jobid (str, optional) –
ID of job to mark ‘Error: message’.
If not given, uses current job ID determined from the environment.
Raises: JobsError
– If job ID could not be determined