celery finalize signal
@@ -71,7 +71,7 @@ class FileOverrideException(Exception):
super(FileOverrideException, self).__init__(self, error_message)
-@celery_app.on_after_configure.connect
+@celery_app.on_after_finalize.connect
def setup_periodic_tasks(sender, **kwargs):
if (hasattr(settings, 'DISABLE_PERIODIC_TASKS') and settings.DISABLE_PERIODIC_TASKS):
logger.debug("Periodic tasks are disabled in SETTINGS")
