aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/reprocess.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/gmg_commands/reprocess.py')
-rw-r--r--mediagoblin/gmg_commands/reprocess.py8
1 files 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":