mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-30 20:31:37 -05:00
down to line 179
This commit is contained in:
@@ -116,10 +116,11 @@ def dao_set_scheduled_jobs_to_pending():
|
||||
from completing until it commits.
|
||||
"""
|
||||
stmt = (
|
||||
select(
|
||||
select(Job)
|
||||
.filter(
|
||||
Job.job_status == JobStatus.SCHEDULED,
|
||||
Job.scheduled_for < utc_now(),
|
||||
).select_from(Job)
|
||||
)
|
||||
.order_by(asc(Job.scheduled_for))
|
||||
.with_for_update()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user