Skip to content

Commit

Permalink
Scale gpu workers matching the number of chunkflow tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlu committed Jun 15, 2024
1 parent 623e393 commit f5d0862
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dags/cluster_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def estimate_optimal_number_of_workers(cluster, cluster_info):
tasks = [check_queue(f"{cluster}_{layer}") for layer in layers]
num_workers = sum(tasks)
else:
num_tasks = check_queue(cluster)
if cluster == "gpu":
num_tasks = check_queue(queue="chunkflow")
else:
num_tasks = check_queue(queue=cluster)
num_workers = estimate_worker_instances(num_tasks, cluster_info)

return num_workers
Expand Down

0 comments on commit f5d0862

Please sign in to comment.