DaveT1991 opened a new pull request, #64995: URL: https://github.com/apache/airflow/pull/64995
## Summary Avoid a startup race in the task supervisor when starting forked task subprocesses. `WatchedSubprocess.start()` currently wraps the freshly forked child with `psutil.Process(pid)` immediately. On some systems this can raise `psutil.NoSuchProcess` even though the child is the direct supervised process, which aborts task startup before the task instance is marked running and later shows up as a queued/failed mismatch. This change uses a lightweight handle backed by `os.waitpid`/`os.kill` for directly forked children instead of performing an immediate `psutil` lookup, and adds a regression test to cover that startup path. Closes #64974 ## Testing - Added regression coverage in `task-sdk/tests/task_sdk/execution_time/test_supervisor.py` - `git diff --check` I could not run the Python test suite locally in this environment because `python` is not installed here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
