You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/25 19:02:52 UTC

[GitHub] [airflow] turbaszek commented on a change in pull request #8559: Monkey patch greenlet celery pools

turbaszek commented on a change in pull request #8559:
URL: https://github.com/apache/airflow/pull/8559#discussion_r415123039



##########
File path: airflow/cli/commands/celery_command.py
##########
@@ -125,7 +125,10 @@ def worker(args):
     }
 
     if conf.has_option("celery", "pool"):
-        options["pool"] = conf.get("celery", "pool")
+        pool = conf.get("celery", "pool")
+        options["pool"] = pool
+        from celery import maybe_patch_concurrency

Review comment:
       Let's move this import to the top, we are importing whole celery anyway 




----------------------------------------------------------------
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:
users@infra.apache.org