Most applications need to perform some scheduled jobs to process information. Users need to be able to monitor the functioning of those scheduled jobs.
These classes provide the means to store the result of batch jobs to enable the user to review or plan them.
Information the batch job that is planned, running or has run
Fields :
- status : INTEGER, required
- host : VARCHAR(256), required
- date : <class ‘sqlalchemy.types.DateTime’>, required
- message : TEXT, not required
- type : refers to BatchJobType
If an exception occurs in a batch job, this method can be used to add the stack trace of the exception to the message
Verifies if this Batch Job is canceled. Returns True if it is. This verification is done without using the ORM, so the verification has no impact on the current session or the objects itself. This method is thus suited to call inside a running batch job to verifiy if another user has canceled the running job.
Returns: | True or False |
---|