Repository navigation
Honor API server worker timeout configuration - #72859
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
e63f390 to
649daf6
Compare
649daf6 to
b4d8813
Compare
|
@Miretpl Thank you for the review, and sorry for the delayed follow-up. I've addressed both comments. Could you please take another look when you have a chance? |
3a4a240 to
7d06e18
Compare
The documented worker timeout setting should control API server worker lifecycle unless users explicitly override it on the command line.
check the type of api-server.worker_timeout. Co-authored-by: Y-C <[email protected]>
7d06e18 to
3565f95
Compare
potiuk
left a comment
There was a problem hiding this comment.
Thanks — reading [api] worker_timeout as the default matches how --port/--workers/--host already work, and the fresh-process test is a good guard. Both of the earlier review points (dropping the newsfragment, moving the test into TestCliApiServer) are addressed. Rebased onto main, approving with auto-merge on.
Drafted-by: Claude Code (Claude Opus 5); reviewed by @potiuk before posting
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
The
airflow api-servercommand hard-codes its worker timeout default, so the documented[api] worker_timeoutsetting andAIRFLOW__API__WORKER_TIMEOUTenvironment variable do not affect the server.This change uses the configured value as the CLI default while preserving an explicit
--worker-timeoutoverride. It also adds a regression test that evaluates the parser in a fresh process.Reference:
Validation:
airflow-core/tests/unit/cli/commands/test_api_server_command.py: 37 passedAlwaysandCLIpassedWas generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5) following the guidelines