Skip to content

fix(backend): add optimistic concurrency to the cron failure-count fa… - #1189

Open
Emmanuel5vohd wants to merge 1 commit into
StellerCraft:mainfrom
Emmanuel5vohd:fix/cron-failure-tracker-fallback-concurrent-loss
Open

fix(backend): add optimistic concurrency to the cron failure-count fa…#1189
Emmanuel5vohd wants to merge 1 commit into
StellerCraft:mainfrom
Emmanuel5vohd:fix/cron-failure-tracker-fallback-concurrent-loss

Conversation

@Emmanuel5vohd

Copy link
Copy Markdown

…llback to prevent lost increments under concurrent cron replicas

  • Add explicit console.warn when optimistic-concurrency retries are exhausted so operators know a concurrent increment may have been lost (the final non-atomic upsert still records the failure to avoid a silent drop)
  • The RPC fallback path already had a retry loop with OCC guard; the new warning surfaces the degraded-mode clearly in operator logs
  • Add integration test (cron-failure-tracker.concurrent-fallback.integration.test.ts) simulating: RPC unavailable + concurrent recordFailure calls + exhausted retries, asserting no silent drop and correct warning emission

Closes #1140

Co-authored-by: fix/cron-failure-tracker-fallback-concurrent-loss

Closes #1141
Closes #1140

…llback to prevent lost increments under concurrent cron replicas

- Add explicit console.warn when optimistic-concurrency retries are exhausted
  so operators know a concurrent increment may have been lost (the final
  non-atomic upsert still records the failure to avoid a silent drop)
- The RPC fallback path already had a retry loop with OCC guard; the new warning
  surfaces the degraded-mode clearly in operator logs
- Add integration test (cron-failure-tracker.concurrent-fallback.integration.test.ts)
  simulating: RPC unavailable + concurrent recordFailure calls + exhausted retries,
  asserting no silent drop and correct warning emission

Closes StellerCraft#1140

Co-authored-by: fix/cron-failure-tracker-fallback-concurrent-loss
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Emmanuel5vohd Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant