django-insights icon indicating copy to clipboard operation
django-insights copied to clipboard

Reloading application every time insights are collected

Open tuhe opened this issue 1 year ago • 1 comments

Hi,

I am trying to use django-insights with celery/beat. I have created a task where I simply run the console command:

python manage.py collect_insights

periodically. I have noticed that every time the AppConfig.ready-function is called anew, and since some of the processes are fairly intensive the server is overloaded and the site is non-responsive. I wonder if there is a way to collect/update the insights without calling the AppConfig.ready-function?

Cheers, TH

tuhe avatar Jan 22 '24 16:01 tuhe

Hi, can you give some details about your setup, like django and celery versions?

terminalkitten avatar Mar 03 '24 12:03 terminalkitten