Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Jun 6, 2023
1 parent eb65949 commit 375bb20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sky/skylet/job_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,9 @@ def update_job_status(job_owner: str,
# The job is stale as it is created before the instance
# is booted, e.g. the instance is rebooted.
job_statuses[i] = JobStatus.FAILED
elif (pending_jobs[job_id]['submit'] >
max(0, time.time() - _PENDING_SUBMIT_TIMEOUT)):
elif (pending_jobs[job_id]['submit'] > max(
0,
time.time() - _PENDING_SUBMIT_TIMEOUT)):
# Gives a 60 second timeout between job being submit from the
# pending queue until appearing in ray jobs
# Reset the job status to PENDING even though it may not appear
Expand Down

0 comments on commit 375bb20

Please sign in to comment.