Implement job limiter for GCP Batch#5158
Merged
javanlacerda merged 1 commit intomasterfrom Feb 9, 2026
Merged
Conversation
Signed-off-by: Javan Lacerda <javanlacerda@google.com>
27f880f to
a15fc91
Compare
ViniciustCosta
approved these changes
Feb 9, 2026
| # 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"); |
Collaborator
There was a problem hiding this comment.
Is this change needed?
| # See https://cloud.google.com/batch/quotas#job_limits | ||
| MAX_CONCURRENT_VMS_PER_JOB = 1000 | ||
|
|
||
| MAX_QUEUE_SIZE = 100 |
Collaborator
There was a problem hiding this comment.
Nit: could this be a project config?
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.