Skip to content

Comments

use id key to retrieve the dataflow job_id#27336

Merged
potiuk merged 1 commit intoapache:mainfrom
dejii:fix-example-dataflow-sensor-job-id
Oct 31, 2022
Merged

use id key to retrieve the dataflow job_id#27336
potiuk merged 1 commit intoapache:mainfrom
dejii:fix-example-dataflow-sensor-job-id

Conversation

@dejii
Copy link
Contributor

@dejii dejii commented Oct 27, 2022

When using any of the DataflowJob sensors (example), the dataflow_job_id key is used to extract the dataflow job id from the job returned by the dataflow task. This results in the error shown below

jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'dataflow_job_id'

The key that contains the job id is id. Dataflow REST API reference


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@dejii dejii requested a review from turbaszek as a code owner October 27, 2022 21:25
@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants