And fix the in-celeryd import.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 21 Mar 2012 10:55:42 +0000 (11:55 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 21 Mar 2012 11:17:52 +0000 (12:17 +0100)
So that celeryd also loads the task.

mediagoblin/init/celery/__init__.py
mediagoblin/tests/test_celery_setup.py

index 29ccd83ad640ea6858520cbc0adf32ec7fab8389..67b020c3a733c403644a19aca739675060086e20 100644 (file)
@@ -18,7 +18,7 @@ import os
 import sys
 
 
-MANDATORY_CELERY_IMPORTS = ['mediagoblin.processing']
+MANDATORY_CELERY_IMPORTS = ['mediagoblin.processing.task']
 
 DEFAULT_SETTINGS_MODULE = 'mediagoblin.init.celery.dummy_settings_module'
 
index fd600f56222741c2e646e8d79cee05d99e98db0d..5530c6f223ec924c968cc90fb6c30451877f96e4 100644 (file)
@@ -48,7 +48,7 @@ def test_setup_celery_from_config():
     assert isinstance(fake_celery_module.CELERYD_ETA_SCHEDULER_PRECISION, float)
     assert fake_celery_module.CELERY_RESULT_PERSISTENT is True
     assert fake_celery_module.CELERY_IMPORTS == [
-        'foo.bar.baz', 'this.is.an.import', 'mediagoblin.processing']
+        'foo.bar.baz', 'this.is.an.import', 'mediagoblin.processing.task']
     assert fake_celery_module.CELERY_RESULT_BACKEND == 'database'
     assert fake_celery_module.CELERY_RESULT_DBURI == (
         'sqlite:///' +