-
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] [api-docs] in-airflow section #25692
Conversation
Deploy preview for dagster-docs ready! Preview available at https://dagster-docs-phnjypi9l-elementl.vercel.app Direct link to changed pages: |
examples/experimental/dagster-airlift/dagster_airlift/in_airflow/proxying_fn.py
Outdated
Show resolved
Hide resolved
b550d3b
to
8a5142b
Compare
c7ddb77
to
8f2e0c3
Compare
8a5142b
to
729fc69
Compare
8f2e0c3
to
e3208b2
Compare
proxying_to_dagster( | ||
proxied_state=load_proxied_state_from_yaml(Path(__file__).parent / "proxied_state"), | ||
global_vars=globals(), | ||
build_from_dag_fn=custom_build_from_dag_fn, |
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 example references custom_build_from_dag_fn
, but this variable isn't defined. Based on the example code above, this should be CustomAuthDAGProxyOperator.build_from_dag
to match the class method implementation.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
examples/experimental/dagster-airlift/dagster_airlift/in_airflow/proxying_fn.py
Outdated
Show resolved
Hide resolved
729fc69
to
2e08a6e
Compare
e3208b2
to
b891cd8
Compare
2e08a6e
to
7573b9e
Compare
b891cd8
to
6c5f547
Compare
7573b9e
to
b5158b2
Compare
6c5f547
to
7db5c61
Compare
b5158b2
to
65537ea
Compare
7db5c61
to
019f13d
Compare
a700b73
to
796ef48
Compare
ef76b25
to
d66d4d1
Compare
796ef48
to
614ea46
Compare
Deploy preview for dagster-docs-beta ready! Preview available at https://dagster-docs-beta-ewnyotw10-elementl.vercel.app Direct link to changed pages: |
614ea46
to
80bc0f1
Compare
if task.task_id == "my_task_needs_more_retries": | ||
return CustomAuthTaskProxyOperator(task_id=task_id, retries=3) | ||
else: | ||
return CustomAuthTaskProxyOperator(task_id=task_id) |
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 variable task_id
in this example is undefined - it should reference the task's ID via task.task_id
. Here's the corrected code:
if task.task_id == "my_task_needs_more_retries":
return CustomAuthTaskProxyOperator(task_id=task.task_id, retries=3)
else:
return CustomAuthTaskProxyOperator(task_id=task.task_id)
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
d66d4d1
to
85675c1
Compare
80bc0f1
to
51abea2
Compare
85675c1
to
25a1908
Compare
51abea2
to
5b40255
Compare
25a1908
to
3e41d65
Compare
5b40255
to
0b65288
Compare
3e41d65
to
c74f9e3
Compare
0b65288
to
e8d4b33
Compare
c74f9e3
to
8317171
Compare
e8d4b33
to
59b72b2
Compare
8317171
to
1cb706e
Compare
59b72b2
to
4bac474
Compare
1cb706e
to
d78ecda
Compare
4bac474
to
036db8b
Compare
d78ecda
to
6ca006a
Compare
036db8b
to
ff64f05
Compare
ff64f05
to
b841062
Compare
Summary & Motivation
Scaffold out in-airflow section, docstrings for all the operators and the main
proxying_to_dagster
function.How I Tested These Changes
Eyes