0

We are facing the issue fetching the data from particular schema's table which is available and the data fetching issue occurs intermediately after few hours of restart of supervisorctl where celery worker is defined. Below is the code mentioned:

with schema_context("public"):
    try:
        client = Client.objects.get(subdomain=hostname)
    except ObjectDoesNotExist:
        client = Client.objects.using("paid").get(subdomain=hostname)

I have also set the connection to a particular schema using the schema_context function. We use RabbitMQ as middleware, and we have three different queues configured. This problem occurs in all queues. We are using the following libraries: celery==4.4.7, django-celery==3.3.0 and django-tenant-users==0.3.12

2
  • Is this using django-tenants ? Commented Jan 10, 2024 at 8:06
  • Yes we are using django-tenant-users==0.3.12 Commented Jan 10, 2024 at 9:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.