Reference
Reference for jobs' actions.
Last updated
Reference for jobs' actions.
POST /queues/:queue-name/jobs/:job-id/progress
Updates the progress of a given job. The progress can be a number or any other json serializable object.
Note, the token used as bearer token must be the token received on the worker's endpoint specific for a given job.
Headers
Content-Type
application/json
Authorization
Bearer <job-token>
Body
An integer or any JSON serializable object.
Response
OKMessage with the reason for the invalid request.POST /queues/:queue-name/jobs/:job-id/logs
Add a log to a given job. Any number of logs can be added to a given job.
Note, the token used as bearer token must be the token received on the worker's endpoint specific for a given job.
Headers
Content-Type
application/json
Authorization
Bearer <job-token>
Body
A plain string with the message to add as a log.
Response
GET /queues/:queue-name/jobs/:job-id/logs?start=0&length=10
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query
start
number
First log to return
length
number
Number of logs to return
Response
Last updated
OKMessage with the reason for the error{
"count": number,
"logs": string[],
}Message with the reason for the error