mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -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.
|
from completing until it commits.
|
||||||
"""
|
"""
|
||||||
stmt = (
|
stmt = (
|
||||||
select(
|
select(Job)
|
||||||
|
.filter(
|
||||||
Job.job_status == JobStatus.SCHEDULED,
|
Job.job_status == JobStatus.SCHEDULED,
|
||||||
Job.scheduled_for < utc_now(),
|
Job.scheduled_for < utc_now(),
|
||||||
).select_from(Job)
|
)
|
||||||
.order_by(asc(Job.scheduled_for))
|
.order_by(asc(Job.scheduled_for))
|
||||||
.with_for_update()
|
.with_for_update()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user