From c360d3e21a6d889fa8c19ece23fda0cac14333eb Mon Sep 17 00:00:00 2001 From: Richard Marko Date: Fri, 13 Oct 2017 18:08:47 +0200 Subject: [PATCH] cli: fix passing of concurrency arg for celery Allows running only one worker, required as a work-around for race conditions that can happen if e.g. two jobs update extras. --- ckan/lib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/lib/cli.py b/ckan/lib/cli.py index 1fbe55bc3fb..4220276fce4 100644 --- a/ckan/lib/cli.py +++ b/ckan/lib/cli.py @@ -1076,7 +1076,7 @@ def run_(self): from ckan.lib.celery_app import celery celery_args = [] if len(self.args) == 2 and self.args[1] == 'concurrency': - celery_args.append['--concurrency=1'] + celery_args.append('--concurrency=1') celery.worker_main(argv=['celeryd', '--loglevel=INFO'] + celery_args) def view(self):