ashb commented on a change in pull request #15929:
URL: https://github.com/apache/airflow/pull/15929#discussion_r634746943
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -1239,6 +1239,8 @@ def _process_executor_events(self, session: Session =
None) -> int:
"task says its %s. (Info: %s) Was the task killed
externally?"
)
self.log.error(msg, ti, state, ti.state, info)
+ self.log.info('Setting task instance %s state to %s as
reported by executor', ti, state)
+ ti.set_state(state)
Review comment:
I think if you moved these two lines to below the `request =` then the
msg would make more sense.
--
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]