cancel_job


Description:

[ 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.

Parameters:

this

a Worker object

job_id

the ID of the job, as returned by submit_job

Returns:

true if the job was cancelled