Queue

Clear a model's pending jobs

POST
/queue/clear

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}