Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Add worker ID to job attribute

Gergő Móricz85ff0c311e0f
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts
index 7d4beef10..2086d0a6b 100644
--- a/apps/api/src/services/queue-worker.ts
+++ b/apps/api/src/services/queue-worker.ts
@@ -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);