Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apache/airflow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f5b1798082610d8d68dfc3abc92b5ef131c519a0
Choose a base ref
..
head repository: apache/airflow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6800d94793f07b60053f348de646f0436d4f81d7
Choose a head ref
Showing with 7 additions and 2 deletions.
  1. +7 −2 task_sdk/src/airflow/sdk/execution_time/supervisor.py
9 changes: 7 additions & 2 deletions task_sdk/src/airflow/sdk/execution_time/supervisor.py
Original file line number Diff line number Diff line change
@@ -412,8 +412,13 @@ def _on_child_started(self, ti: TaskInstance, path: str | os.PathLike[str], requ

# Send the message to tell the process what it needs to execute
log.debug("Sending", msg=msg)
self.stdin.write(msg.model_dump_json().encode())
self.stdin.write(b"\n")

try:
self.stdin.write(msg.model_dump_json().encode())
self.stdin.write(b"\n")
except BrokenPipeError:
# Debug is fine, the process will have shown _something_ in it's last_chance exception handler
log.debug("Couldn't send startup message to Subprocess - it died very early", pid=self.pid)

def kill(
self,