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

[dagster-airlift][federation-tutorial] Implement dags #25885

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

dpeng817
Copy link
Contributor

Summary & Motivation

How I Tested These Changes

Changelog

Insert changelog entry or delete this section.

) as dag:
PythonOperator(
task_id=f"task_{i}",
python_callable=lambda: None,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lambda function captures the loop variable i, which can lead to unexpected behavior. All tasks will use the final value of i. To fix this, use a default argument to bind the current value: python_callable=lambda x=i: None

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

Copy link

graphite-app bot commented Nov 13, 2024

Graphite Automations

"Add a 'docs-to-migrate' label to PRs with docs" took an action on this PR • (11/13/24)

1 label was added to this PR based on Christopher DeCarolis's automation.

@dpeng817 dpeng817 changed the title [dagster-airlift] Implement dags [dagster-airlift][federation-tutorial] Implement dags Nov 13, 2024
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from ce20018 to 1b9ba9e Compare November 13, 2024 19:00
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from 1b9ba9e to fd09a10 Compare November 13, 2024 19:10
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from fd09a10 to 2d05d25 Compare November 13, 2024 19:15
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from 2d05d25 to e67e6ea Compare November 13, 2024 19:59
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from e67e6ea to b29e016 Compare November 13, 2024 20:01
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from b29e016 to 53c17ac Compare November 13, 2024 22:00
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from 53c17ac to 2a4cd92 Compare November 13, 2024 22:03
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from 2a4cd92 to 1ca3d88 Compare November 13, 2024 22:18
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from 1ca3d88 to dbbf541 Compare November 13, 2024 23:19
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from dbbf541 to 0be6ddb Compare November 13, 2024 23:47
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from 0be6ddb to 714e55f Compare November 14, 2024 00:00
@dpeng817 dpeng817 force-pushed the dpeng817/fed-tutorial-overview-setup branch from 714e55f to 4c45c85 Compare November 14, 2024 18:08
Base automatically changed from dpeng817/fed-tutorial-overview-setup to dpeng817/federation-tutorial November 14, 2024 18:10
@dpeng817 dpeng817 merged commit 31e1b1e into dpeng817/federation-tutorial Nov 14, 2024
1 of 2 checks passed
@dpeng817 dpeng817 deleted the dpeng817/implement_dags branch November 14, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-to-migrate Docs to migrate to new docs site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants