question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update example DAG files to latest syntax

See original GitHub issue

Hello,

When we stop releasing backport packages, we will be able to update all example DAGs to use the new syntax for handling outputs introduced by AIP-31.

This is an example change.

 product_set_update = CloudVisionUpdateProductSetOperator(
     location=GCP_VISION_LOCATION,
-    product_set_id="{{ task_instance.xcom_pull('product_set_create') }}",
+    product_set_id=product_set_create.output,
     product_set=ProductSet(display_name='My Product Set 2'), 
    task_id='product_set_update',
)

Best regards, Kamil Bregułła

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
potiukcommented, Jun 24, 2021

I think this could be done as extra task afterwards

1reaction
potiukcommented, Sep 2, 2021

Fantastic! Thanks @josh-fell !

Read more comments on GitHub >

github_iconTop Results From Across the Web

DAGs — Airflow Documentation
A DAG (Directed Acyclic Graph) is the core concept of Airflow, collecting Tasks together, organized with dependencies and relationships to say how they...
Read more >
DAG writing best practices in Apache Airflow - Astronomer Docs
Keep up to date with the best practices for developing efficient, secure, and scalable DAGs using Airflow. Learn about DAG design and data...
Read more >
Writing DAGs (workflows) | Cloud Composer - Google Cloud
This guide shows you how to write an Apache Airflow directed acyclic graph (DAG) that runs in a Cloud Composer environment. Note: Because...
Read more >
airflow: 1.7: DAG not being updated in GUI - Stack Overflow
I encountered this problem in a code tab, it would not update. Turns out it is not updated due to the mistake in...
Read more >
Creating and updating Apache Airflow jobs using the CLI
The following example demonstrates how to create an Airflow DAG in Cloudera Data ... cde job create --name <job_name> --type airflow --dag-file <DAG_file> ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found