uranusjr commented on code in PR #57862:
URL: https://github.com/apache/airflow/pull/57862#discussion_r2497084142
##########
airflow-core/src/airflow/models/taskmap.py:
##########
@@ -265,7 +267,11 @@ def expand_mapped_task(
TaskInstance.run_id == run_id,
TaskInstance.map_index >= total_expanded_ti_count,
)
- query = with_row_locks(query, of=TaskInstance, session=session,
skip_locked=True)
+ query = select(TaskInstance)
+ query = cast(
Review Comment:
The problem is `with_row_locks`. I think we should be able to change it to
something like
```python
SelectT = TypeVar("SelectT", bound=Select)
def with_row_locks(
stmt: SelectT,
... # The rest is the same
) -> SelectT:
...
```
--
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]