Skip to content

feat(cache): guard warming cycles with concurrency lock (#1936) - #2074

Closed
ryder777777 wants to merge 1 commit into
Arena1X:mainfrom
ryder777777:fix-1936-cache-warming-concurrency-lock
Closed

ryder777777 wants to merge 1 commit into
Arena1X:mainfrom
ryder777777:fix-1936-cache-warming-concurrency-lock

Conversation

@ryder777777

Copy link
Copy Markdown

Closes #1936

Summary

Add an in-process concurrency lock (isWarming / isWarmCycleRunning()) around CacheWarmingService.warmFrequentlyAccessedData() so overlapping cron/manual triggers skip cleanly with a warning log and always release the lock in finally.

Modified Files

  • backend/src/cache/warming.service.ts
  • backend/src/cache/warming.service.spec.ts

Verification

  • Verified with npx eslint (0 errors) and npx jest unit tests passing in backend/.

@ryder777777

Copy link
Copy Markdown
Author

/claim #1936

Payout Wallet (Binance USDT TRC20 / Tron Network): TXmG2bbkS5m2ZfT535o5kQNpwYzhb5JUYg

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
insight-arena-4rll Error Error Oct 20, 2026 7:15pm UTC

This branch had an error being deployed

1 failed deployment
Preview — 8743d5cc Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] — Cache Warming Job Concurrency Lock

2 participants