django-celery icon indicating copy to clipboard operation
django-celery copied to clipboard

allow user-specified backend for result testrunner

Open hoprocker opened this issue 10 years ago • 1 comments

hoprocker avatar Apr 10 '15 16:04 hoprocker

I think you meant to put the DB backend in the if clause. You changed it to be the CeleryTestSuiteRunnerStoringResult class instead.

if not hasattr(settings, 'CELERY_RESULT_BACKEND') or \
                        settings.CELERY_RESULT_BACKEND not in \
                ['database', 'djcelery.backends.database:DatabaseBackend']:
            settings.CELERY_RESULT_BACKEND = 'database'

jeffbean avatar Apr 15 '15 22:04 jeffbean