cancelJob abstract method
- @POST.new('/admin/jobs/cancel')
- @Body.new() required CancelJobRequest body,
Request cancellation of a running job.
Mark a job as cancel-requested. The handler must be cooperatively cancellable — it will see the flag at its next helpers.shouldCancel() check. Returns {cancelled: false} for already-terminal jobs.
body - Name not received - field will be skipped.
Implementation
@POST('/admin/jobs/cancel')
Future<CancelJobResponseSchema> cancelJob({
@Body() required CancelJobRequest body,
});