aamangeldi commented on a change in pull request #8559:
URL: https://github.com/apache/airflow/pull/8559#discussion_r415124187
##########
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
+ maybe_patch_concurrency(['-P', pool])
Review comment:
Good idea!
##########
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:
Sounds good.
----------------------------------------------------------------
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]