ashb commented on a change in pull request #6792: [AIRFLOW-5930] Use cached-SQL 
query building for hot-path queries
URL: https://github.com/apache/airflow/pull/6792#discussion_r357131966
 
 

 ##########
 File path: airflow/__init__.py
 ##########
 @@ -48,3 +48,8 @@
 login: Optional[Callable] = None
 
 integrate_plugins()
+
+
+# Ensure that this query is build in the master process, before we fork of a 
sub-process to parse the DAGs
+from . import ti_deps
 
 Review comment:
   (thought I already left this comment, but can't see it)
   
   Yes, this is a hack and needs fixing before this is ready to merge. Putting 
it somehere in SchedulerJob (or DagFileProcessorAgent perhaps) might be a good 
way, as that is the only time we need to prime the cache for this specific 
query.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to