Parcourir la source

Database backend url passing

Fixed bug where database backend not passing through URL to BaseBackend __init__.
Zoran Pavlovic il y a 9 ans
Parent
commit
c98aa2d41b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      celery/backends/database/__init__.py

+ 3 - 1
celery/backends/database/__init__.py

@@ -77,7 +77,9 @@ class DatabaseBackend(BaseBackend):
         # The `url` argument was added later and is used by
         # the app to set backend by url (celery.backends.get_backend_by_url)
         super(DatabaseBackend, self).__init__(
-            expires_type=maybe_timedelta, **kwargs
+            expires_type=maybe_timedelta,
+            url=url,
+            **kwargs
         )
         conf = self.app.conf
         self.url = url or dburi or conf.sqlalchemy_dburi