o-nikolas commented on a change in pull request #21191:
URL: https://github.com/apache/airflow/pull/21191#discussion_r796126064
##########
File path: airflow/jobs/triggerer_job.py
##########
@@ -245,9 +245,11 @@ async def arun(self):
await self.cleanup_finished_triggers()
# Sleep for a bit
await asyncio.sleep(1)
- # Every minute, log status
+ # Every minute, log status if at least one trigger is running.
if time.time() - last_status >= 60:
- self.log.info("%i triggers currently running",
len(self.triggers))
+ count = len(self.triggers)
+ if count > 0:
+ self.log.info("%i triggers currently running", count)
Review comment:
Ah yes of course, brain-o on my part! (although you could still save the
line by taking the len inside the call to `log.info` :smile: )
--
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]