You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to read the documentation and see if we can specify which DATABASES we can manually specify which db but i failed to find it, in case of settings above main or datalake.
Im assuming the database is determined using the DATABASE_ROUTERS, in this case can we somehow inject the db name into the atomic transaction like this:
transaction.atomic(using=self.db)
The text was updated successfully, but these errors were encountered:
I detect this issue occurring after i set up multiple database with no default DB in
My Django setting as below
The issue occurs because we are trying to perform an atomic transaction at
django-celery-results/django_celery_results/managers.py
Line 90 in 16a18d9
The line
transaction.atomic()
will always point to the default db if you look at the django source code at:https://github.com/django/django/blob/2887b9f67cadc5295ef6a0574de2c2c8fdd66905/django/db/transaction.py#L315
I tried to read the documentation and see if we can specify which DATABASES we can manually specify which db but i failed to find it, in case of settings above
main
ordatalake
.Im assuming the database is determined using the
DATABASE_ROUTERS
, in this case can we somehow inject the db name into the atomic transaction like this:transaction.atomic(using=self.db)
The text was updated successfully, but these errors were encountered: