try again

This commit is contained in:
Kenneth Kehl
2024-12-30 11:45:14 -08:00
parent 2878fb0070
commit bf497d8896
2 changed files with 7 additions and 2 deletions

View File

@@ -176,6 +176,11 @@ def dao_update_job(job):
db.session.commit()
def dao_update_job_status_to_error(job):
db.session.update(Job).where(Job.id == job.id).values(job_status=JobStatus.ERROR)
db.session.commit()
def dao_get_jobs_older_than_data_retention(notification_types):
stmt = select(ServiceDataRetention).where(
ServiceDataRetention.notification_type.in_(notification_types)