lohitkolluri commented on code in PR #67900:
URL: https://github.com/apache/airflow/pull/67900#discussion_r3350706442
##########
airflow-core/src/airflow/models/backfill.py:
##########
@@ -653,7 +653,7 @@ def _create_backfill(
triggering_user_name=triggering_user_name,
)
session.add(br)
- session.commit()
+ session.flush()
Review Comment:
Good catch — reverting `session.flush()` back to `session.commit()` to
restore the visibility guarantee. The backfill is now committed immediately so
concurrent requests see it in the `num_active` check, preventing duplicate
active backfills. The atomicity trade-off (orphaned backfill if DagRun creation
fails) is the pre-existing behavior and is acceptable since the error handling
is already improved with retries and a graceful 503. Pushed in `db990c3`.
--
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]