[ Version ( since = "6.0" ) ]
public bool cancel_job (uint job_id) throws Error
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.
this |
a Worker object |
job_id |
the ID of the job, as returned by submit_job |
true if the job was cancelled |