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


##########
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)}
+            delayed = new_trigger_ids - ready_ids
+            if delayed:
+                log.info(
+                    "Triggers failed recently, re-creating them once their 
backoff has passed",

Review Comment:
   Changed in 5f91338. The backoff is logged once, when the failure records the 
delay, with the consecutive count and the seconds it will wait. The per-loop 
logs in `update_triggers` and `build_trigger_workloads` are gone. A trigger 
carried over from another triggerer logs its delay when its count is loaded.



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