Skip to content

Commit

Permalink
Fix fuzz task scheduling and increase throughput.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmetzman committed Dec 16, 2024
1 parent 591d6c5 commit 1c54159
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/clusterfuzz/_internal/cron/schedule_fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,17 @@ def get_batch_regions(batch_config):

def schedule_fuzz_tasks() -> bool:
"""Schedules fuzz tasks."""
# TODO(metzman): Remove this when we are ready to run on Chrome.
start = time.time()

batch_config = local_config.BatchConfig()
regions = get_batch_regions(batch_config)
# TODO(metzman): Make it possible to use multiple regions.
if len(regions) > 1:
region = 'us-central1'
else:
region = regions[0]
project = batch_config.get('project')
available_cpus = get_available_cpus(project, region)
# TODO(metzman): Remove this as we move from experimental code to production.
available_cpus = min(available_cpus, 2500)
available_cpus = min(available_cpus, 3000)
fuzz_tasks = get_fuzz_tasks(available_cpus)
if not fuzz_tasks:
logs.error('No fuzz tasks found to schedule.')
Expand Down

0 comments on commit 1c54159

Please sign in to comment.