Add worker ID to job attribute

This commit is contained in:
Gergő Móricz 2024-08-21 19:21:29 +02:00
parent 3ad9bf7ac0
commit 85ff0c311e

View File

@ -109,6 +109,7 @@ const workerFun = async (queueName: string, processJobInternal: (token: string,
op: "bullmq.job",
attributes: {
job: job.id,
worker: process.env.FLY_MACHINE_ID ?? worker.id,
},
}, async () => {
await processJobInternal(token, job);