Skip to content

Commit

Permalink
Bugfix task execution from runner in Windows (apache#42426)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl authored and joaopamaral committed Oct 21, 2024
1 parent 570480c commit 546505c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/jobs/local_task_job_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ def handle_task_exit(self, return_code: int) -> None:
_set_task_deferred_context_var()
else:
message = f"Task exited with return code {return_code}"
if return_code == -signal.SIGKILL:
message += "For more information, see https://airflow.apache.org/docs/apache-airflow/stable/troubleshooting.html#LocalTaskJob-killed"
if not IS_WINDOWS and return_code == -signal.SIGKILL:
message += ". For more information, see https://airflow.apache.org/docs/apache-airflow/stable/troubleshooting.html#LocalTaskJob-killed"
self.log.info(message)

if not (self.task_instance.test_mode or is_deferral):
Expand Down

0 comments on commit 546505c

Please sign in to comment.