[Cherry-Pick][APIServer][Feature] Add configurable worker health check timeout via FD_WORKER_ALIVE_TIMEOUT(#5865)#5867
Merged
Jiang-Jia-Jun merged 2 commits intorelease/2.4from Jan 5, 2026
Conversation
|
|
|
Thanks for your contribution! |
…a FD_WORKER_ALIVE_TIMEOUT Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
Jiang-Jia-Jun
approved these changes
Jan 4, 2026
Copilot
AI
changed the title
[WIP] [Cherry-Pick] Cherry pick changes from PR #5865
[Cherry-Pick][APIServer][Feature] Add configurable worker health check timeout via FD_WORKER_ALIVE_TIMEOUT(#5865)
Jan 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Cherry-pick of #5865 to
release/2.4branch. Worker processes executing computations beyond 30 seconds triggered spurious "worker not healthy" errors due to hardcoded timeout in health check calls.Modifications
Environment Variable
FD_WORKER_ALIVE_TIMEOUTtofastdeploy/envs.py(default: 30s, maintains backward compatibility)Service Layer
check_health()invocations inserving_chat.pyandserving_completion.pyto accept configurable timeout viatime_interval_threasholdparameterfastdeploy.envsimportsDocumentation
docs/usage/environment_variables.mdanddocs/zh/usage/environment_variables.mdUsage or Command
Accuracy Tests
N/A - Configuration change only, no model output affected.
Checklist
pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.