ashb commented on code in PR #67800:
URL: https://github.com/apache/airflow/pull/67800#discussion_r3534980420
##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -1013,7 +1018,12 @@ def ti_put_rtif(
task_instance = session.scalar(select(TI).where(TI.id == task_instance_id))
if not task_instance:
# On retry/clear, the server regenerates the TI id. Return 410 for the
stale id.
- _raise_ti_not_in_live_table(task_instance_id, session)
+ archived_in_history = bool(
+ session.scalar(
Review Comment:
Nit: better as a session.exists or wherever that fn is
--
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]