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
We use django-celery-beat in a multi-tenant application, we have 20K rows of periodic tasks (each tenant has its own periodic tasks), but when any task is created, updated or deleted the method DatabaseScheduler.all_as_schedule it takes a long time to be processed, i think you could use self.Model.objects.enabled().prefetch_related("interval", "crontab", "solar", "clocked") and with that it significantly reduces the processing time.
The problem we are having is that many periodic tasks are not executed in due time.
Versions
celery==5.2.7
django-celery-beat==2.4.0
The text was updated successfully, but these errors were encountered:
Summary:
We use django-celery-beat in a multi-tenant application, we have 20K rows of periodic tasks (each tenant has its own periodic tasks), but when any task is created, updated or deleted the method
DatabaseScheduler.all_as_schedule
it takes a long time to be processed, i think you could useself.Model.objects.enabled().prefetch_related("interval", "crontab", "solar", "clocked")
and with that it significantly reduces the processing time.The problem we are having is that many periodic tasks are not executed in due time.
Versions
celery==5.2.7
django-celery-beat==2.4.0
The text was updated successfully, but these errors were encountered: