ashb commented on code in PR #74222:
URL: https://github.com/apache/airflow/pull/74222#discussion_r4196099318
##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_state_store.py:
##########
@@ -47,7 +47,7 @@
def _get_task_scope_for_ti(task_instance_id: UUID, session: Session) ->
TaskScope:
ti = session.get(TI, task_instance_id)
- if ti is None:
+ if ti is None or ti.working_set is not True:
Review Comment:
> If the attempt was archived while its worker was still running
The try is only archived _after_ the running task is stopped though I think?
--
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]