Skip to content

Commit

Permalink
[Tests] Fix test_large_job_queue occasional failure (#3023)
Browse files Browse the repository at this point in the history
* fix

* cahnge to 90s
  • Loading branch information
cblmemo authored Feb 1, 2024
1 parent 25ad4a3 commit b247870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ def test_large_job_queue(generic_cloud: str):
f'sky launch -y -c {name} --cpus 8 --cloud {generic_cloud}',
f'for i in `seq 1 75`; do sky exec {name} -n {name}-$i -d "echo $i; sleep 100000000"; done',
f'sky cancel -y {name} 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16',
'sleep 85',
'sleep 90',
# Each job takes 0.5 CPU and the default VM has 8 CPUs, so there should be 8 / 0.5 = 16 jobs running.
# The first 16 jobs are canceled, so there should be 75 - 32 = 43 jobs PENDING.
f's=$(sky queue {name}); echo "$s"; echo; echo; echo "$s" | grep -v grep | grep PENDING | wc -l | grep 43',
Expand Down

0 comments on commit b247870

Please sign in to comment.