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

CloudRun - Support listing jobs with a label #10721

Open
loicmathieu opened this issue Apr 19, 2024 · 0 comments
Open

CloudRun - Support listing jobs with a label #10721

loicmathieu opened this issue Apr 19, 2024 · 0 comments
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@loicmathieu
Copy link

Describe the solution you'd like

We would like to be able to list CloudRun job using a filter.
Something like the following code snippet (which didn't work yet as there is no setFilter() method).

var jobsClient = JobsClient.create();
var existingJob = jobsClient.listJobs(ListJobsRequest.newBuilder()
                    .setParent(String.format("projects/%s/locations/%s", projectId, region))
                    .setFilter("labels.key=value")
                    .build();

Describe alternatives you've considered
The alternative is to list all jobs and filter later.
However, this didn't scale if there were a lot of jobs.

Additional context
It is already possible via gcloud: gcloud run jobs list --filter "labels.key=value".

@diegomarquezp diegomarquezp added type: question Request for information or clarification. Not an issue. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants