diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-08-09 14:15:18 -0500 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 15:30:15 -0700 |
commit | 7a414c8d42d63685655c0142345dcae6c66726af (patch) | |
tree | 4bca57091552b504fbe2bb05020a67ea6a12d5e3 /mediagoblin/gmg_commands/reprocess.py | |
parent | 19ed12b2790ec32d993e6e73c101ea820fe3ed29 (diff) | |
download | mediagoblin-7a414c8d42d63685655c0142345dcae6c66726af.tar.lz mediagoblin-7a414c8d42d63685655c0142345dcae6c66726af.tar.xz mediagoblin-7a414c8d42d63685655c0142345dcae6c66726af.zip |
Moving celery setup to the right place
This commit sponsored by Jose Manuel Zueco Lazaro. Thank you!
Diffstat (limited to 'mediagoblin/gmg_commands/reprocess.py')
-rw-r--r-- | mediagoblin/gmg_commands/reprocess.py | 8 |
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": |