Skip to content

The open alternative to Salesforce, designed for AI.

Remove shouldRunOnVersionUpgrade (#23641)

martmull50adf4fa8c4a
diff --git a/packages/twenty-apps/public/last-contact/package.json b/packages/twenty-apps/public/last-contact/package.json
index 2bae33bf093..6efa8c2d5e5 100644
--- a/packages/twenty-apps/public/last-contact/package.json
+++ b/packages/twenty-apps/public/last-contact/package.json
@@ -1,6 +1,6 @@
{
"name": "@twentyhq/last-contact",
- "version": "1.2.1",
+ "version": "1.2.2",
"license": "MIT",
"engines": {
"node": "^24.5.0",
diff --git a/packages/twenty-apps/public/last-contact/src/logic-functions/backfill-last-contact.ts b/packages/twenty-apps/public/last-contact/src/logic-functions/backfill-last-contact.ts
index fc48d71029e..69772c7371e 100644
--- a/packages/twenty-apps/public/last-contact/src/logic-functions/backfill-last-contact.ts
+++ b/packages/twenty-apps/public/last-contact/src/logic-functions/backfill-last-contact.ts
@@ -9,10 +9,13 @@ import {
} from 'src/constants/backfill';
import { BACKFILL_POST_INSTALL_LOGIC_FUNCTION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
import { postToOwnRoute } from 'src/utils/post-to-own-route';
+import { getBackfillBatchSize, getBackfillSleepMs } from 'src/utils/backfill-settings';
const handler = async (): Promise<object> => {
const existingState = await kv.get<BackfillState>(BACKFILL_STATE_KV_KEY);
+ console.log('Backfill params', JSON.stringify({ batchSize: getBackfillBatchSize(), sleepMs: getBackfillSleepMs() }));
+
if (existingState) {
return { outcome: 'already-running', state: existingState };
}
@@ -34,6 +37,6 @@ export default definePostInstallLogicFunction({
description:
'Starts the sequential last-contact backfill orchestrator after installation.',
timeoutSeconds: 60,
- shouldRunOnVersionUpgrade: true,
+ shouldRunOnVersionUpgrade: false,
handler,
});