cancel_job
Description:
Cancels a job which has not yet been processed.
If the job cannot be found, is being processed or has already been processed, then this function returns false .
This function can be called on already cancelled jobs, and simply returns true in that case.
Parameters:
this |
a Worker object |
job_id |
the ID of the job, as returned by submit_job |
Returns:
true if the job was cancelled |