Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

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

Corentin Thomassetae37d1db360c
diff --git a/apps/papra-server/src/modules/tasks/tasks.config.ts b/apps/papra-server/src/modules/tasks/tasks.config.ts
index 03df7f04..54727a85 100644
--- a/apps/papra-server/src/modules/tasks/tasks.config.ts
+++ b/apps/papra-server/src/modules/tasks/tasks.config.ts
@@ -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: {