vincbeck commented on code in PR #45859: URL: https://github.com/apache/airflow/pull/45859#discussion_r1925522386
########## providers/src/airflow/providers/standard/triggers/file.py: ########## @@ -69,9 +69,11 @@ async def run(self) -> typing.AsyncIterator[TriggerEvent]: mod_time = datetime.datetime.fromtimestamp(mod_time_f).strftime("%Y%m%d%H%M%S") self.log.info("Found File %s last modified: %s", path, mod_time) yield TriggerEvent(True) + await asyncio.sleep(self.poke_interval) Review Comment: Since it is an async sleep that will not block the triggerer. The triggerer will use this time to run other async operations. At least that's my understanding -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org