1👍
✅
You could use a request_finished
signal and start your function at the end of every request. Look at https://docs.djangoproject.com/en/dev/ref/signals/#django.core.signals.request_finished
Source:stackexchange.com