vincbeck commented on code in PR #76560:
URL: https://github.com/apache/airflow/pull/76560#discussion_r4756654449
##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -1128,12 +1129,15 @@ def record_trigger_success(self, trigger_id: int) ->
None:
self._mark_recovered(trigger_id, after_failures)
def _mark_recovered(self, trigger_id: int, after_failures: int) -> None:
- log.info(
- "Trigger recovered",
- trigger_id=trigger_id,
- trigger_kind=self.trigger_kinds.get(trigger_id),
- after_failures=after_failures,
- )
+ fields = {"trigger_kind": self.trigger_kinds.get(trigger_id),
"after_failures": after_failures}
+ log.info("Trigger recovered", trigger_id=trigger_id, **fields)
+ if isinstance(factory := self.logger_cache.get(trigger_id),
WatcherLoggingFactory):
Review Comment:
That's okay
--
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]