CELERY_ALWAYS_EAGER environment variable only recognized if 'true' now

This commit is contained in:
Christopher Allan Webber 2012-04-08 10:43:23 -05:00
parent 8a0d35e72a
commit d9a31a3980

View File

@ -84,7 +84,7 @@ class MediaGoblinApp(object):
# Setup celery, if appropriate
if setup_celery and not app_config.get('celery_setup_elsewhere'):
if os.environ.get('CELERY_ALWAYS_EAGER'):
if os.environ.get('CELERY_ALWAYS_EAGER', 'false').lower() == 'true':
setup_celery_from_config(
app_config, global_config,
force_celery_always_eager=True)