Job Data
import { Queue } from 'bullmq';
const myQueue = new Queue('paint');
const job = await myQueue.add('wall', { color: 'red' });
job.data; // { color: 'red' }from bullmq import Queue
queue = Queue('paint')
job = await queue.add('wall', {'color': 'red'})
job.data # { color: 'red' }Update data
const job = await Job.create(queue, 'wall', { color: 'red' });
await job.updateData({
color: 'blue',
});
job.data; // { color: 'blue' }from bullmq import Queue
queue = Queue('paint')
job = await queue.add('wall', {'color': 'red'})
await job.updateData({'color': 'blue'})
job.data # { color: 'blue' }Read more:
Last updated
Was this helpful?