Skip to content

Implement job limiter for GCP Batch#5158

Merged
javanlacerda merged 1 commit intomasterfrom
javan.batch-job-limiter
Feb 9, 2026
Merged

Implement job limiter for GCP Batch#5158
javanlacerda merged 1 commit intomasterfrom
javan.batch-job-limiter

Conversation

@javanlacerda
Copy link
Collaborator

It implements the a job limiter for the GCP Batch adapter for remote tasks.

It uses a private API for checking the availability of the regions for scheduling jobs, if all of them are loaded, the tasks are returned as unscheduled tasks and sent back to the queue.

Signed-off-by: Javan Lacerda <javanlacerda@google.com>
@javanlacerda javanlacerda force-pushed the javan.batch-job-limiter branch from 27f880f to a15fc91 Compare February 9, 2026 18:30
# Licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# Licensed under the Apache License, Version 2.0 (the "License");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change needed?

# See https://cloud.google.com/batch/quotas#job_limits
MAX_CONCURRENT_VMS_PER_JOB = 1000

MAX_QUEUE_SIZE = 100
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could this be a project config?

@javanlacerda javanlacerda merged commit 8e17f2b into master Feb 9, 2026
11 checks passed
@javanlacerda javanlacerda deleted the javan.batch-job-limiter branch February 9, 2026 19:39
ViniciustCosta pushed a commit that referenced this pull request Feb 18, 2026
It implements the a job limiter for the GCP Batch adapter for remote
tasks.

It uses a private API for checking the availability of the regions for
scheduling jobs, if all of them are loaded, the tasks are returned as
unscheduled tasks and sent back to the queue.

Signed-off-by: Javan Lacerda <javanlacerda@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments