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'm using django-multitenant together with Celery and a Redis broker.
I've added a tenant_id parameter to all my celery functions. When the tasks start it calls 'set_current_tenant' with this tenant ID.
In one case I forgot to call 'set_current_tenant', however, it used the tenant_id of the task that was last ran. It is as if it remembered the tenant_id of another task that another user (of another tenant) ran.
I thought that this shouldn't be possible, so I'm worried about potential unintended consequences this may have, such as race conditions.
Is this project compatible with Celery and if so, is there any particular configuration I should do?
The text was updated successfully, but these errors were encountered:
I'm using django-multitenant together with Celery and a Redis broker.
I've added a tenant_id parameter to all my celery functions. When the tasks start it calls 'set_current_tenant' with this tenant ID.
In one case I forgot to call 'set_current_tenant', however, it used the tenant_id of the task that was last ran. It is as if it remembered the tenant_id of another task that another user (of another tenant) ran.
I thought that this shouldn't be possible, so I'm worried about potential unintended consequences this may have, such as race conditions.
Is this project compatible with Celery and if so, is there any particular configuration I should do?
The text was updated successfully, but these errors were encountered: