Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion task-sdk/src/airflow/sdk/execution_time/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,12 @@ def _fork_main(
- Catch un-handled exceptions and attempt to show _something_ in case of error
- Finally, run the actual task runner code (``target`` argument, defaults to ``.task_runner:main`)
"""
# TODO: Make this process a session leader
# Make this process a session leader
if hasattr(os, "setsid"):
try:
os.setsid()
except OSError:
pass

# Store original stderr for last-chance exception handling
last_chance_stderr = _get_last_chance_stderr()
Expand Down
Loading