Skip to content

reallocate after repeated token fetch failures#19

Merged
mgorkii-nlplogix merged 1 commit into
mainfrom
reallocate-on-token-failures
May 5, 2026
Merged

reallocate after repeated token fetch failures#19
mgorkii-nlplogix merged 1 commit into
mainfrom
reallocate-on-token-failures

Conversation

@mgorkii-nlplogix
Copy link
Copy Markdown
Contributor

This pull request introduces improved error handling for repeated token fetch failures in the src/api.ts file and bumps the package version in package.json. The main change is to track consecutive token fetch failures and trigger a reallocation if a threshold is reached, improving reliability when the token service is unavailable.

Error handling improvements:

  • Added a tokenFailures counter and MAX_TOKEN_FAILURES constant to track consecutive token fetch failures in src/api.ts. If fetching the token fails five times in a row, the worker logs an error and calls reallocateMe to trigger reallocation. The counter resets on a successful token fetch. [1] [2]

Version update:

  • Bumped the package version from 0.7.1 to 0.7.2 in package.json to reflect these changes.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🚀 Download the latest release candidate 🚀

@mgorkii-nlplogix mgorkii-nlplogix merged commit 525617c into main May 5, 2026
1 check passed
@mgorkii-nlplogix mgorkii-nlplogix deleted the reallocate-on-token-failures branch May 5, 2026 15:03
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.

1 participant