Skip to content

Commit

Permalink
cli: fix passing of concurrency arg for celery
Browse files Browse the repository at this point in the history
Allows running only one worker, required as a work-around for race conditions that can happen if e.g. two jobs update extras.
  • Loading branch information
sorki committed Oct 13, 2017
1 parent b5b8bf0 commit c360d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/cli.py
Expand Up @@ -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):
Expand Down

0 comments on commit c360d3e

Please sign in to comment.