Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Dec 30, 2024
1 parent 3da4755 commit 4e3f899
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/dao/jobs_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import timedelta

from flask import current_app
from sqlalchemy import and_, asc, desc, func, select
from sqlalchemy import and_, asc, desc, func, select, update

from app import db
from app.dao.pagination import Pagination
Expand Down Expand Up @@ -177,7 +177,8 @@ def dao_update_job(job):


def dao_update_job_status_to_error(job):
db.session.update(Job).where(Job.id == job.id).values(job_status=JobStatus.ERROR)
stmt = update(Job).where(Job.id == job.id).values(job_status=JobStatus.ERROR)
db.session.execute(stmt)
db.session.commit()


Expand Down

0 comments on commit 4e3f899

Please sign in to comment.