CELERY_ALWAYS_EAGER environment variable only recognized if 'true' now
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 8 Apr 2012 15:43:23 +0000 (10:43 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 8 Apr 2012 15:43:23 +0000 (10:43 -0500)
mediagoblin/app.py

index 99c7de76b4a5809ea8b3eb7d00513c64857fe8ab..ef166047659191398ee29202572c08c0d52c9ff1 100644 (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)