add caching for db calls to prevent excessive UI polling

This commit is contained in:
Kenneth Kehl
2025-09-26 09:48:57 -07:00
parent b77eb5f5c0
commit 745730cb16

View File

@@ -202,7 +202,6 @@ def dao_update_job_status_to_error(job):
db.session.commit()
@cached(dao_cache)
def dao_get_jobs_older_than_data_retention(notification_types):
stmt = select(ServiceDataRetention).where(
ServiceDataRetention.notification_type.in_(notification_types)