Queue
Clear a model's pending jobs
Cancel all pending jobs for the given model. Running jobs are left untouched. Returns the number of jobs that were canceled.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
Clear request
Request to clear pending jobs for a model.
model*string
Model identifier whose pending jobs should be canceled
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/queue/clear" \ -H "Content-Type: application/json" \ -d '{ "model": "string" }'{ "canceled_count": 0}Cancel a queued job POST
Cancel a pending job. Only jobs in pending status can be canceled. Running jobs cannot be stopped. Returns the job status after the attempt. If the job is not pending, returns 409 with the current status unchanged.
Get queue metrics GET
Get the current queue statistics for a model, including pending and running job counts.