Skip to content

Commit

Permalink
Use correct query so the challenges are actually updated
Browse files Browse the repository at this point in the history
  • Loading branch information
koopmant committed Dec 18, 2024
1 parent ded7e90 commit 4c5b78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/grandchallenge/challenges/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def send_alert_if_budget_consumed_warning_threshold_exceeded(challenge):
@acks_late_2xlarge_task
@transaction.atomic
def update_compute_costs_and_storage_size():
challenges = Challenge.objects.all()
challenges = Challenge.objects.all().with_available_compute()

for challenge in challenges.with_available_compute():
for challenge in challenges:
annotate_compute_costs_and_storage_size(challenge=challenge)
send_alert_if_budget_consumed_warning_threshold_exceeded(
challenge=challenge
Expand Down

0 comments on commit 4c5b78d

Please sign in to comment.