nailo2c commented on code in PR #58543:
URL: https://github.com/apache/airflow/pull/58543#discussion_r3370292585


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2582,6 +2584,55 @@ def _update_state(dag: SerializedDAG, dag_run: DagRun):
                         dag_run.run_id,
                     )
                     continue
+            # For AssetAndTimeSchedule, defer starting until all required 
assets are queued.
+            # Only gate scheduled runs; manual and backfill runs should start 
immediately.
+            if isinstance(dag.timetable, AssetAndTimeSchedule) and 
dag_run.run_type == DagRunType.SCHEDULED:

Review Comment:
   Thanks Jens, this is a really, really helpful insight. I'm checking the 
fundamental mechanism of ADRQ and I found there might be a clean way to design 
for this case.
   
   Please give me a couple days to study and think, and I'll try to propose a 
better design later.



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