mykola-shyshov commented on PR #58896:
URL: https://github.com/apache/airflow/pull/58896#issuecomment-3620880501
```
def try_adopt_task_instances(self, tis: Sequence[TaskInstance]) ->
Sequence[TaskInstance]:
...
for ti in tis:
if ti.external_executor_id is not None:
celery_tasks[ti.external_executor_id] =
(AsyncResult(ti.external_executor_id), ti)
else:
not_adopted_tis.append(ti)
```
can be replaced with just
```
def try_adopt_task_instances(self, tis: Sequence[TaskInstance]) ->
Sequence[TaskInstance]:
...
for ti in tis:
celery_tasks[ti.external_executor_id] =
(AsyncResult(ti.external_executor_id), ti)
```
and `try_adopt_task_instances` will be based only task.id. it always will
return empty list (what I think expected and okay) and will update task statuses
--
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]