From: Christopher Allan Webber Date: Fri, 9 Aug 2013 19:15:18 +0000 (-0500) Subject: Moving celery setup to the right place X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7a414c8d42d63685655c0142345dcae6c66726af;p=mediagoblin.git Moving celery setup to the right place This commit sponsored by Jose Manuel Zueco Lazaro. Thank you! --- 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":