Skip to content

Commit

Permalink
Lower threshold on scalability envelope many tasks (ray-project#17511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Wu authored Aug 2, 2021
1 parent 748cbbb commit af88037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/distributed/test_many_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def task():
# There are some relevant magic numbers in this check. 10k tasks each
# require 1/4 cpus. Therefore, ideally 2.5k cpus will be used.
err_str = f"Only {max_cpus - min_cpus_available}/{max_cpus} cpus used."
threshold = num_tasks * cpus_per_task * 0.9
threshold = num_tasks * cpus_per_task * 0.75
assert max_cpus - min_cpus_available > threshold, err_str

for _ in tqdm.trange(num_tasks, desc="Ensuring all tasks have finished"):
Expand Down

0 comments on commit af88037

Please sign in to comment.