Skip to content

Commit

Permalink
Fix another bug with identifying preemptible jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed May 30, 2024
1 parent 7f5846e commit ba8ce1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beaker/services/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def utilization(self, cluster: Union[str, Cluster]) -> ClusterUtilization:
if job.node not in node_to_util:
continue
running_jobs += 1
if job.priority == Priority.preemptible:
if job.priority == Priority.preemptible or job.preemptible:
running_preemptible_jobs += 1
elif job.status.current == CurrentJobStatus.created:
queued_jobs += 1
Expand Down

0 comments on commit ba8ce1d

Please sign in to comment.