delete_job() function
Delete a job.
This function deletes the specified job. If the job is not completed and
force is not set to True, a JobNotDeletedException
may be raised.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
job |
Job
|
The job to delete. |
required |
force |
Optional[bool]
|
If True, forces the deletion of job, even if it is not completed yet. |
False
|
Raises:
Type | Description |
---|---|
JobNotDeletedException
|
If the job is not finished. |