Anurag-S1ngh commented on code in PR #77087:
URL: https://github.com/apache/airflow/pull/77087#discussion_r4754685126


##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -1285,7 +1324,17 @@ def update_triggers(self, requested_trigger_ids: 
set[int]):
         )
 
         if new_trigger_ids:
-            workloads_to_create = self.build_trigger_workloads(new_trigger_ids)
+            now = time.monotonic()
+            ready_ids = {tid for tid in new_trigger_ids if 
self.failure_tracker.attempt_ready(tid, now)}

Review Comment:
   Dropped the claim from the description. Sharing one delay across a stream 
needs the shared stream key in the supervisor, and only the runner computes it, 
so grouping the delays needs a protocol change. That is a separate change. I 
renamed the test that implied the grouping. Can open a follow-up issue if you 
want one.



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