-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[dagster-airlift][federation-tutorial] Implement dags #25885
Conversation
) as dag: | ||
PythonOperator( | ||
task_id=f"task_{i}", | ||
python_callable=lambda: None, |
There was a problem hiding this comment.
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.
379d28d
to
ce20018
Compare
69b6cae
to
fc3bfd8
Compare
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-la5umf9eh-elementl.vercel.app Direct link to changed pages: |
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. |
ce20018
to
1b9ba9e
Compare
fc3bfd8
to
56dc056
Compare
1b9ba9e
to
fd09a10
Compare
56dc056
to
e4270a2
Compare
fd09a10
to
2d05d25
Compare
e4270a2
to
5e67354
Compare
2d05d25
to
e67e6ea
Compare
5e67354
to
2ac9632
Compare
e67e6ea
to
b29e016
Compare
2ac9632
to
13ff868
Compare
b29e016
to
53c17ac
Compare
13ff868
to
09b59d8
Compare
53c17ac
to
2a4cd92
Compare
09b59d8
to
ee91104
Compare
2a4cd92
to
1ca3d88
Compare
ee91104
to
64722c3
Compare
1ca3d88
to
dbbf541
Compare
64722c3
to
b896f9c
Compare
dbbf541
to
0be6ddb
Compare
b896f9c
to
1821ae4
Compare
0be6ddb
to
714e55f
Compare
1821ae4
to
cb5258e
Compare
714e55f
to
4c45c85
Compare
cb5258e
to
31e1b1e
Compare
Summary & Motivation
How I Tested These Changes
Changelog