Skip to content

Commit

Permalink
user per_cluster_totals
Browse files Browse the repository at this point in the history
  • Loading branch information
Comeani committed May 8, 2024
1 parent 21b178b commit 13d3440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/crc_sus.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ def app_logic(self, args: Namespace) -> None:
print(f"No active allocation information found in accounting system for '{args.account}'")
exit()

per_cluster_totals = get_awarded_totals(alloc_requests, auth_header)
per_cluster_totals = get_per_cluster_totals(alloc_requests, auth_header)
earliest_date = get_earliest_startdate(alloc_requests)

for cluster in per_cluster_totals:
used = Slurm.get_cluster_usage_by_user(args.account, earliest_date, cluster)
if not used:
used = 0
else:
used = used['total']
used = int(used['total'])

print(self.build_output_string(args.account, used, per_cluster_totals[cluster], cluster))

0 comments on commit 13d3440

Please sign in to comment.