Commit 6e393450 authored by David Douard's avatar David Douard
Browse files

[entities] remove useless registration_callback

the celery configuration stuff for tests is not needed there
parent c0157c78b679
......@@ -393,11 +393,3 @@ class CeleryTaskAdapter(ICeleryTask):
elif task_in_backend(self.task_id):
return super(CeleryTaskAdapter, self).state
return _('unknown state')
def registration_callback(vreg):
vreg.register_all(six.itervalues(globals()), __name__)
if vreg.config.mode == 'test':
conf = celery.current_app.conf
conf['CELERY_ALWAYS_EAGER'] = True
conf['CELERY_EAGER_PROPAGATES_EXCEPTIONS'] = True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment