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
In a django project with a database router and read-only databases, the delete_expired method may try to perform raw_delete() using a read-only database, resulting in an Internal Error: "ReadOnlySqlTransaction - cannot execute DELETE in a read-only transaction".
In a django project with a database router and read-only databases, the
delete_expired
method may try to performraw_delete()
using a read-only database, resulting in an Internal Error: "ReadOnlySqlTransaction - cannot execute DELETE in a read-only transaction".Relevant code:
My Database Router:
Occasionally, django-celery-results will attempt to conduct
delete_expired
using one of my replica databases:connection: <DatabaseWrapper vendor='postgresql' alias='replica1'>
Recommend changing the
using
argument of the atomic transaction indelete_expired
to explicitly use the writable database specified in the router.The text was updated successfully, but these errors were encountered: