Moving celery setup to the right place
This commit sponsored by Jose Manuel Zueco Lazaro. Thank you!
This commit is contained in:
parent
19ed12b279
commit
7a414c8d42
@ -249,10 +249,6 @@ def available(args):
|
|||||||
def run(args):
|
def run(args):
|
||||||
### OLD CODE, review
|
### OLD CODE, review
|
||||||
|
|
||||||
# Run eagerly unless explicetly set not to
|
|
||||||
if not args.celery:
|
|
||||||
os.environ['CELERY_ALWAYS_EAGER'] = 'true'
|
|
||||||
|
|
||||||
_set_media_state(args)
|
_set_media_state(args)
|
||||||
_set_media_type(args)
|
_set_media_type(args)
|
||||||
|
|
||||||
@ -264,6 +260,10 @@ def run(args):
|
|||||||
|
|
||||||
|
|
||||||
def reprocess(args):
|
def reprocess(args):
|
||||||
|
# Run eagerly unless explicetly set not to
|
||||||
|
if not args.celery:
|
||||||
|
os.environ['CELERY_ALWAYS_EAGER'] = 'true'
|
||||||
|
|
||||||
commands_util.setup_app(args)
|
commands_util.setup_app(args)
|
||||||
|
|
||||||
if args.reprocess_subcommand == "run":
|
if args.reprocess_subcommand == "run":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user