Skip to content

Commit

Permalink
fix pid writing
Browse files Browse the repository at this point in the history
  • Loading branch information
cg505 committed Dec 20, 2024
1 parent aeaaf7b commit 3b4cf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/jobs/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def scheduler_set_done(job_id: int, idempotent: bool = False) -> None:
def set_job_controller_pid(job_id: int, pid: int):
with db_utils.safe_cursor(_DB_PATH) as cursor:
updated_count = cursor.execute(
'UPDATE job_info SET'
'UPDATE job_info SET '
'pid = (?) '
'WHERE spot_job_id = (?)', (pid, job_id)).rowcount
assert updated_count == 1, (job_id, updated_count)
Expand Down

0 comments on commit 3b4cf44

Please sign in to comment.