deleteJob

fun deleteJob(jobID: HashID, throwOnNotExists: Boolean = true)

Deletes the target job only if it exists, is owned by the current service or process, and is in a completed status.

If the target job is not owned by the current service instance, this method throws an UnownedJobException.

Callers should first use getJob to test the completion and ownership statuses of the job before attempting to use this method.

Since

1.2.0

Parameters

jobID

Hash ID of the job that should be deleted.

throwOnNotExists

Whether an exception should be thrown if the target job does not exist in S3.

Throws

If the target job does not exist, is not owned by the current service or process, or is not in a completed status.