fix(tasks): add FLY_MACHINE_ID fallback to worker ids (#564)

This commit is contained in:
Corentin Thomasset
2025-10-19 14:16:42 +02:00
committed by GitHub
parent a7464f8b89
commit ae37d1db36

View File

@@ -43,9 +43,9 @@ export const tasksConfig = {
},
worker: {
id: {
doc: 'The id of the task worker, used to identify the worker in the Cadence cluster in case of multiple workers',
doc: 'The id of the task worker, used to identify the worker in the Cadence cluster in case of multiple workers, should be unique per instance',
schema: z.string().optional(),
env: ['TASKS_WORKER_ID', 'DYNO', 'RENDER_SERVICE_ID'],
env: ['TASKS_WORKER_ID', 'DYNO', 'RENDER_SERVICE_ID', 'FLY_MACHINE_ID'],
},
},
hardDeleteExpiredDocuments: {