From 55c74e1e4b36d56c1f3c8e69a4cbea43843093c8 Mon Sep 17 00:00:00 2001 From: Elrond Date: Fri, 3 Jun 2011 23:54:33 +0200 Subject: [PATCH] Propagate Exceptions up in Celery-Eager-Mode When running in celery-eager mode, the celery machinery hides all exceptions inside "celery tasks" (you can find out about them on the task handle somehow). Currently much better to propagate them straight up, so they're visible on the console. --- mediagoblin/celery_setup/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mediagoblin/celery_setup/__init__.py b/mediagoblin/celery_setup/__init__.py index 1a77cc62..d4f25b07 100644 --- a/mediagoblin/celery_setup/__init__.py +++ b/mediagoblin/celery_setup/__init__.py @@ -140,6 +140,7 @@ def setup_celery_from_config(app_config, global_config, if force_celery_always_eager: celery_settings['CELERY_ALWAYS_EAGER'] = True + celery_settings['CELERY_EAGER_PROPAGATES_EXCEPTIONS'] = True __import__(settings_module) this_module = sys.modules[settings_module] -- 2.25.1