Skip to content

Commit 737900a

Browse files
authored
Bugfix task execution from runner in Windows (apache#42426)
1 parent f605f6c commit 737900a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airflow/jobs/local_task_job_runner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ def handle_task_exit(self, return_code: int) -> None:
261261
_set_task_deferred_context_var()
262262
else:
263263
message = f"Task exited with return code {return_code}"
264-
if return_code == -signal.SIGKILL:
265-
message += "For more information, see https://airflow.apache.org/docs/apache-airflow/stable/troubleshooting.html#LocalTaskJob-killed"
264+
if not IS_WINDOWS and return_code == -signal.SIGKILL:
265+
message += ". For more information, see https://airflow.apache.org/docs/apache-airflow/stable/troubleshooting.html#LocalTaskJob-killed"
266266
self.log.info(message)
267267

268268
if not (self.task_instance.test_mode or is_deferral):

0 commit comments

Comments
 (0)