Skip to content

Commit 2fe74ec

Browse files
author
Brett Gibson
committed
Do not pass *args to celery.bin.worker.run.
The method celery.bin.worker.run only takes keyword arguments. Passing *args to it was resulting in the exception: TypeError: run() got multiple values for keyword argument 'hostname'
1 parent 622f39b commit 2fe74ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djcelery/management/commands/celeryd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ class Command(CeleryCommand):
2222
+ worker.preload_options)
2323

2424
def handle(self, *args, **options):
25-
worker.run(*args, **options)
25+
worker.run(**options)

0 commit comments

Comments
 (0)