Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[schedule_fuzz] Handle cases where no tasks waiting on queue #4589

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/clusterfuzz/_internal/cron/schedule_fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ def count_unacked(creds, project_id, subscription_id):
for result in results:
if len(result.points) == 0:
continue
result = int(result.points[0].value.int64_value)
size = int(result.points[0].value.int64_value)
logs.info(f'Unacked in {subscription_id}: {result}')
return result
return size
return 0


def get_available_cpus_for_region(creds, project: str, region: str) -> int:
Expand Down
Loading