Skip to content

Commit

Permalink
Merge pull request #206 from apocelipes/feat-change-order-of-celery-w…
Browse files Browse the repository at this point in the history
…ork-command

Change the ordering of celery global options
  • Loading branch information
fenngwd authored Nov 23, 2021
2 parents fdad146 + 07225cc commit 7011f8c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sea/contrib/extensions/celery/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ def celery(argv, app):
from sea.contrib.extensions.celery import empty_celeryapp
empty_celeryapp.load_config(app)
sys.argv = (
["celery"] + argv
["celery"]
+ ["-A", "sea.contrib.extensions.celery.empty_celeryapp.capp"]
+ argv
)
else:
create_app()
sys.argv = (
["celery"] + argv + ["-A", "app.extensions:{app}".format(app=app)]
["celery"]
+ ["-A", "app.extensions:{app}".format(app=app)]
+ argv
)
return celerymain()

Expand Down

0 comments on commit 7011f8c

Please sign in to comment.