Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
edulix committed May 1, 2024
1 parent 8aae027 commit e05d632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frestq/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def update_task(msg):

# fixed broken FK bug, when taskid exists in a non local db
# task = msg.task
task = db.session.query(ModelTask).filter(ModelTask.id == msg.task_id).with_for_update().first()
task = db.session.query(ModelTask).filter(ModelTask.id == msg.task_id).with_for_update(of=ModelTask).first()

logging.debug("UPDATING TASK with id %s" % task.id)
if not task or\
Expand Down

0 comments on commit e05d632

Please sign in to comment.