Skip to content

fix(engine): don't log routine concurrency index builds as errors - #5220

Closed
igor-kupczynski wants to merge 1 commit into
mainfrom
t3code/investigate-concurrency-strategy-errors
Closed

igor-kupczynski wants to merge 1 commit into
mainfrom
t3code/investigate-concurrency-strategy-errors

Conversation

@igor-kupczynski

Copy link
Copy Markdown
Contributor

🤖 Claude Opus 5.5 on behalf of Igor:

Description

Every scheduler restart, scale event or tenant rebalance makes the new owner wait out the previous holder's 30s outbox lease before the in-memory concurrency index builds. Run logged each tick of that wait as error running concurrency strategy, so every rollout floods the error alerts.

Builds under 60s now return ErrIndexBuildInProgress, logged at debug under a separate message. Builds past 60s (actually stuck) still log at error. Observed build waits top out around 35s.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

🤖 AI Disclosure
  • I acknowledge that an LLM was used in the creation of this Pull Request, in accordance with Hatchet's AI_POLICY.md.

  • Details: Claude Code investigated the alert, wrote the change and test, and ran a separate review pass.

Every scheduler restart or tenant rebalance makes the new owner wait out
the previous holder's 30s outbox lease before the in-memory index builds.
Run reported each of those ticks as an error, flooding alerts on rollouts.
Builds under 60s now return ErrIndexBuildInProgress, logged at debug under
a separate message; longer builds still log as errors.
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
hatchet-docs Ready Ready Preview Oct 15, 2026 1:36pm UTC

Request Review

@github-actions github-actions Bot added the engine Related to the core Hatchet engine label Oct 15, 2026
@igor-kupczynski

Copy link
Copy Markdown
Contributor Author

🤖 Claude Opus 5.5 on behalf of Igor:

Closing for now in favour of #5214.

This branch was successfully deployed

1 active deployment
Preview — 4b5e366f Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine Related to the core Hatchet engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant