Call sys.exit instead of builtin exit in task runner parse method in case of missing DAG or task.#55786
Merged
kaxil merged 1 commit intoapache:mainfrom Sep 17, 2025
Merged
Conversation
…case of missing DAG or task. Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
ashb
approved these changes
Sep 17, 2025
kosteev
pushed a commit
to GoogleCloudPlatform/composer-airflow
that referenced
this pull request
Sep 25, 2025
Patch builtin exit method to address issue from apache/airflow#55783. This patch will/should be removed in the Composer Airflow versions that will contain apache/airflow#55786. BUG=445115413 Change-Id: I1929945edb9dce81de2f512681e3a3335c9833d0 GitOrigin-RevId: 36bfe8ac983d87c12d8fb6f692a3a0ca0de7a320
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Sep 30, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 1, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 2, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 3, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 4, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 5, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 5, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 7, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 8, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 9, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 10, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 11, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 12, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 14, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 15, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 17, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
abdulrahman305 bot
pushed a commit
to qenex-ai/airflow
that referenced
this pull request
Oct 19, 2025
…case of missing DAG or task. (apache#55786) Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
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.
Builtin exit method apart from raising SystemExit exception also closes stdin (supervisor socket in case of task runner), which breaks supervisor-runner communication.
Thus, we use sys.exit which is intended to be used in production (versus exit which is for interactive shell). See details in the linked issue.
closes: #55783
related: #55783