adonis-bull-queue
adonis-bull-queue copied to clipboard
Return job handle return value in worker
trafficstars
Why
The return value from the worker is quite handy when using something like bull-board to view job runs.
export default class SomeJob extends Job {
static get $$filepath() {
return import.meta.url
}
async handle(payload: Payload) {
return { some: "data" }
}
}
In bull-board this job would show in ui like
{
"jobData": {
},
"returnValue": {
"some": "data"
}
}