mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
Update job status to ready to send, indicating the file for the job has been uploaded to S3.
This commit is contained in:
@@ -116,6 +116,11 @@ def dao_update_job(job):
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def dao_update_job_status(job_id, status):
|
||||
db.session.query(Job).filter_by(id=job_id).update({'job_status': status})
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def dao_get_jobs_older_than(limit_days):
|
||||
return Job.query.filter(
|
||||
cast(Job.created_at, sql_date) < days_ago(limit_days)
|
||||
|
||||
Reference in New Issue
Block a user