Skip to content

Commit b888207

Browse files
authored
Fix typo on types (#5139)
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
1 parent a2d1582 commit b888207

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/clusterfuzz/_internal/batch/service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ def count_queued_or_scheduled_tasks(project: str,
173173
"""Counts the number of queued and scheduled tasks."""
174174
region = f'projects/{project}/locations/{region}'
175175
jobs_filter = 'Status.State="SCHEDULED" OR Status.State="QUEUED"'
176-
req = batch.remote_task_types.ListJobsRequest(
177-
parent=region, filter=jobs_filter)
176+
req = batch.types.ListJobsRequest(parent=region, filter=jobs_filter)
178177
queued = 0
179178
scheduled = 0
180179
for job in _batch_client().list_jobs(request=req):

0 commit comments

Comments
 (0)