ashb commented on a change in pull request #16301:
URL: https://github.com/apache/airflow/pull/16301#discussion_r649176409



##########
File path: airflow/jobs/local_task_job.py
##########
@@ -154,11 +148,13 @@ def handle_task_exit(self, return_code: int) -> None:
         # in case it failed due to runtime exception/error
         error = None
         if self.task_instance.state == State.RUNNING:
+            print(f"Running: state: {self.task_instance.state}")
             # This is for a case where the task received a sigkill
             # while running
-            self.task_instance.set_state(State.FAILED)
+            self.task_instance.handle_failure(error="Task received a SIGKILL 
signal")
         if self.task_instance.state != State.SUCCESS:
             error = self.task_runner.deserialize_run_error()
+        print(f"Exiting: state={self.task_instance.state}")

Review comment:
       ```suggestion
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to