Cancel Running Job
POST/api/v2/queue-admin/jobs/:id/cancel
Set the co-operative cancel flag for a currently running (reserved) job.
Writes the Redis key cancel:job:{uuid} with a short TTL. The target job class must use the CheckpointableJob trait and poll $this->shouldCancel() at safe checkpoints — workers respect the flag and abort cleanly. Non-checkpointable classes are rejected with 422.
Returns the TTL of the flag in seconds.
Authentication: Requires Bearer token.
Request
Responses
- 200
Successful response