Skip to content

Commit 59b5b60

Browse files
committed
Fix row count
1 parent 4ebf790 commit 59b5b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/job-orchestration/job_orchestration/scheduler/query/query_scheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ def set_job_or_task_status(
323323

324324
with contextlib.closing(db_conn.cursor()) as cursor:
325325
cursor.execute(update)
326+
row_changed = cursor.rowcount != 0
326327
db_conn.commit()
327-
rval = cursor.rowcount != 0
328-
return rval
328+
return row_changed
329329

330330

331331
async def handle_cancelling_search_jobs(db_conn_pool) -> None:

0 commit comments

Comments
 (0)