From f2fcf0f6c2f9ad55bfb031d1efff4df454fd5659 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 27 Nov 2023 16:23:57 +0100 Subject: [PATCH] Idempotency --- packages/server/src/appMigrations/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/server/src/appMigrations/index.ts b/packages/server/src/appMigrations/index.ts index 079e3e8c44..ba91d20594 100644 --- a/packages/server/src/appMigrations/index.ts +++ b/packages/server/src/appMigrations/index.ts @@ -11,8 +11,12 @@ export async function checkMissingMigrations(appId: string) { await queue.add( { appId, + }, + { + jobId: appId, + removeOnComplete: true, + removeOnFail: true, } - // TODO: idempotency ) } }