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.
Fields :
- host : VARCHAR(256), 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 an exception to the message.
If no arguments are given, sys.exc_traceback is used.
Parameters: |
|
---|
Add strings to the message of this batch job.
Parameters: |
|
---|
‘green’, ...), None if the color needs no change.
Create a new batch job object in a session of its own. This allows flushing the batch job independent from other objects.
Parameters: |
|
---|---|
Returns: | a new BatchJob object |
Verifies if this Batch Job is canceled. Returns True if it is. This method is thus suiteable to call inside a running batch job to verifiy if another user has canceled the running job. Create a batch job object through the create() method to make sure requesting the status does not interfer with the normal session.
Returns: | True or False |
---|