From 7a414c8d42d63685655c0142345dcae6c66726af Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 9 Aug 2013 14:15:18 -0500 Subject: [PATCH] Moving celery setup to the right place This commit sponsored by Jose Manuel Zueco Lazaro. Thank you! --- mediagoblin/gmg_commands/reprocess.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mediagoblin/gmg_commands/reprocess.py b/mediagoblin/gmg_commands/reprocess.py index 62a6d428..2af88847 100644 --- a/mediagoblin/gmg_commands/reprocess.py +++ b/mediagoblin/gmg_commands/reprocess.py @@ -249,10 +249,6 @@ def available(args): def run(args): ### 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_type(args) @@ -264,6 +260,10 @@ def run(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) if args.reprocess_subcommand == "run": -- 2.25.1