kaxil commented on code in PR #43243:
URL: https://github.com/apache/airflow/pull/43243#discussion_r1818989737
##########
tests/jobs/test_local_task_job.py:
##########
@@ -902,7 +902,9 @@ def test_fast_follow(
ti_by_task_id = {}
with create_session() as session:
for task_id in init_state:
- ti = TaskInstance(dag.get_task(task_id),
run_id=dag_run.run_id, state=init_state[task_id])
+ ti = TaskInstance(dag.get_task(task_id),
run_id=dag_run.run_id)
+ ti.refresh_from_db()
Review Comment:
That feels a weird one to be added to the constructor though. At some point,
we should just do a better Session & State management in Airflow with the
`provide_session`, `session.merge` shenanigans.
--
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]