Skip to content

Commit

Permalink
Restore missing argument docs
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Aug 29, 2024
1 parent c94bd7a commit e9859a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion keystone_api/apps/allocations/tasks/limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ def update_limits_for_cluster(cluster: Cluster) -> None:

@shared_task()
def update_limit_for_account(account: ResearchGroup, cluster: Cluster) -> None:
"""Update the TRES billing usage limits for an individual Slurm account, closing out any expired allocations."""
"""Update the allocation limits for an individual Slurm account and close out any expired allocations.
Args:
account: ResearchGroup object for the account.
cluster: Cluster object corresponding to the Slurm cluster.
"""

# Calculate service units for expired and active allocations
closing_sus = Allocation.objects.expired_service_units(account, cluster)

Check notice on line 58 in keystone_api/apps/allocations/tasks/limits.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

keystone_api/apps/allocations/tasks/limits.py#L58

'Allocation' may be undefined, or defined from star imports: apps.allocations.models, apps.users.models (F405)
Expand Down

0 comments on commit e9859a7

Please sign in to comment.