bolkedebruin commented on code in PR #34487:
URL: https://github.com/apache/airflow/pull/34487#discussion_r1331684493
##########
airflow/dag_processing/manager.py:
##########
@@ -466,6 +475,12 @@ def __init__(
else {}
)
+ dags_directory_event_handler =
AirflowFileSystemEventHandler(dag_file_processor_manager=self)
+ self.observer = Observer() # Class watching for file system changes
+ self.observer.schedule(
+ event_handler=dags_directory_event_handler,
path=str(self._dag_directory), recursive=True
+ )
Review Comment:
While it would be nice to have this behind a feature flag, `watchdog` will
fall back to polling if events are not available. Polling is what we do
ourselves so functionally there would not be a difference.
--
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]