Skip to content
Discussion options

You must be logged in to vote

This is a known bug in the 3.2 line, and it's fixed in Airflow 3.3.1.

When you mark the task as failed, the next heartbeat from the task gets a 409 and the supervisor kills the task process. That's the "Server indicated the task shouldn't be running anymore" line in your log. In 3.2.2 the signal only goes to the task-runner process itself. Your @task.external_python function runs in a separate Python process that the task-runner starts with subprocess.Popen, so it never receives the signal. Once the task-runner is killed, that child gets reparented and keeps running, which is why your log keeps printing alive after the termination message.

It was reported in #65505 and fixed by #65738. Th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@samkelemen
Comment options

Answer selected by samkelemen
Comment options

You must be logged in to vote
1 reply
@samkelemen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants