ashb commented on code in PR #47126:
URL: https://github.com/apache/airflow/pull/47126#discussion_r1972473923
##########
airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -102,18 +105,7 @@ def ti_run(
.with_for_update()
)
try:
- (
- previous_state,
- dag_id,
- run_id,
- task_id,
- map_index,
- next_method,
- try_number,
- max_tries,
- next_method,
- next_kwargs,
- ) = session.execute(old).one()
+ ti = session.execute(old).one()
Review Comment:
Rather than using the row as a tuple, make use of the name attribute access
that SQLA already gives us. Just makes it a bit easier.
--
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]