utkarsharma2 commented on code in PR #43063:
URL: https://github.com/apache/airflow/pull/43063#discussion_r1875850530
##########
airflow/jobs/backfill_job_runner.py:
##########
@@ -309,6 +309,13 @@ def _manage_executor_state(
self.log.debug("Executor state: %s task %s", state, ti)
+ if (
+ state in (TaskInstanceState.FAILED, TaskInstanceState.SUCCESS)
+ and ti.state in self.STATES_COUNT_AS_RUNNING
+ ):
+ self.log.debug(f"In-memory TaskInstance state {ti} does not
agree with executor state {state}. Attempting to resolve by refreshing
in-memory task instance from DB.")
Review Comment:
```suggestion
self.log.debug(
f"In-memory TaskInstance state {ti} does not agree with
executor state {state}. Attempting to resolve by refreshing in-memory task
instance from DB."
)
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]