Skip to content

Commit

Permalink
[AIRFLOW-3502] Add celery config option for setting "pool" (#4308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Silk authored and Tao Feng committed Dec 12, 2018
1 parent e9a09d4 commit 96b8db6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/bin/cli.py
Expand Up @@ -1052,6 +1052,9 @@ def worker(args):
'loglevel': conf.get('core', 'LOGGING_LEVEL'),
}

if conf.has_option("celery", "pool"):
options["pool"] = conf.get("celery", "pool")

if args.daemon:
pid, stdout, stderr, log_file = setup_locations("worker",
args.pid,
Expand Down

0 comments on commit 96b8db6

Please sign in to comment.