assurah commented on issue #61375:
URL: https://github.com/apache/airflow/issues/61375#issuecomment-3844822200

   In the current implementation, it appears that the Backfill record and its 
associated DagRuns may be committed in separate database transactions or 
phases. Specifically, the Backfill record is persisted first to ensure the 
request is registered.
   
   However, the logic used by the scheduler to monitor and mark a backfill as 
completed seems to rely on the absence of "unfinished" dag runs associated with 
that backfill.
   
   Since the query for unfinished DagRuns returns zero at that precise moment, 
the system might incorrectly mark the backfill as Completed before any actual 
work has been queued.
   
   if some synchronization guards already in place, let me know.


-- 
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]

Reply via email to