Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ListJobsRequest is not using the 'location' filter #31

Closed
PlugaruT opened this issue Sep 17, 2021 · 5 comments
Closed

ListJobsRequest is not using the 'location' filter #31

PlugaruT opened this issue Sep 17, 2021 · 5 comments
Labels
api: dataflow Issues related to the googleapis/python-dataflow-client API. external This issue is blocked on a bug with the actual product. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@PlugaruT
Copy link

PlugaruT commented Sep 17, 2021

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS type and version: MacOS local and Debian in CI
  • Python version: 3.8.7
  • pip version: 21.2.3
  • google-cloud-dataflow-client version: 0.1.3

Steps to reproduce

  • Try and get the running dataflow jobs by setting another location besides us-central1, say us-east1. With the default one, it will get the jobs correctly, one you specify another region, it will return empty result, even tho there are jobs running in that region.

Code example

from google.cloud.dataflow_v1beta3.services.jobs_v1_beta3 import JobsV1Beta3Client
from google.cloud.dataflow_v1beta3.types.jobs import ListJobsRequest

jobs_client = JobsV1Beta3Client()

active_jobs = jobs_client.list_jobs(
            ListJobsRequest(project_id="project-id-here", filter=ListJobsRequest.Filter.ACTIVE, location="us-east1")
        )

Stack trace

No stacktrace, it just returns empty list.

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

@product-auto-label product-auto-label bot added the api: dataflow Issues related to the googleapis/python-dataflow-client API. label Sep 17, 2021
@meredithslota
Copy link

Thanks for filing this! It appears there are (possibly) related issues in other clients which makes me think it might be a service-side problem: googleapis/nodejs-dataflow#19, #25 (previous issue in this repo). Pinging @busunkim96 to investigate.

@meredithslota meredithslota added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Sep 20, 2021
@meredithslota
Copy link

meredithslota commented Sep 24, 2021

We've identified similar issues in other repos and have escalated this to the API service team since it's not a language-specific library issue. Here are the related issues:

Marking this as a P1 bug w/ external label.

@meredithslota meredithslota added external This issue is blocked on a bug with the actual product. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. and removed priority: p2 Moderately-important priority. Fix may not be included in next release. labels Sep 24, 2021
@bbhoss
Copy link

bbhoss commented Nov 1, 2021

Just to be clear @meredithslota this is "external" in the sense that it's not an issue with this library itself, but an issue with the Dataflow service API (another team internal to Google?).

@PlugaruT did you find any workaround? This seems possibly related to GRPC as I've got a REST client service that's not having this problem.

@bbhoss
Copy link

bbhoss commented Nov 29, 2021

I couldn't find an existing issue in the Google Issue Tracker so I created one here. I suggest starring this issue to anyone else that runs across this problem, hopefully it will get some attention from Google soon.

@davidcavazos
Copy link

davidcavazos commented Apr 28, 2022

The fix has been merged on PR googleapis/gapic-generator-python#1284 and it should be available on release 0.65.2 or later.

I'm closing this, but please re-open if the issue still persists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: dataflow Issues related to the googleapis/python-dataflow-client API. external This issue is blocked on a bug with the actual product. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants