Skip to content

Give catalog resync transactions 30 s so large connectors sync at boot - #1643

Merged
helpcodeai merged 2 commits into
mainfrom
fix/resync-transaction-timeout
Nov 12, 2026
Merged

helpcodeai merged 2 commits into
mainfrom
fix/resync-transaction-timeout

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

The catalog resync updates every tool row of a connector in one interactive Prisma transaction with the default 5 s timeout. On 11-11, two boot auto-syncs of WooCommerce connectors were skipped with "expired transaction" (11:00 and 12:31 UTC); they only retry at the next boot. The transaction now gets maxWait 10 s and timeout 30 s.

Changes

  • catalog-resync.service.ts: RESYNC_TRANSACTION passed to the resync $transaction.
  • Spec: the transaction is called with those options; the timeout is above 5 s.

Type

  • Bug fix

Testing

  • Added/updated unit tests
  • npx jest src/connectors/catalog-resync in packages/backend: 42/42. npx eslint on both files clean. Full checks in CI.

Same in Cloud and self-hosted. No schema change, nothing in ee/.

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • All existing tests pass (npm test) (CI)
  • This PR has a descriptive title

@helpcodeai
helpcodeai merged commit 16977e2 into main Nov 12, 2026
16 checks passed
@helpcodeai
helpcodeai deleted the fix/resync-transaction-timeout branch November 12, 2026 09:17
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant