Jobs.Cancel
go
func (*JobClient) Cancel(ctx context.Context, jobID uuid.UUID) errorCancel a job. When a job is canceled, no queued tasks will be picked up by runners and executed even if runners are idle. Tasks that are already being executed will finish their execution and not be interrupted. All sub-tasks spawned from such tasks after the cancellation will not be picked up by runners.
Parameters
jobID uuid.UUID The id of the job
Returns
An error if the job could not be cancelled.