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] [api-docs] in-airflow section #25692

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

dpeng817
Copy link
Contributor

@dpeng817 dpeng817 commented Nov 1, 2024

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

Copy link

github-actions bot commented Nov 1, 2024

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-phnjypi9l-elementl.vercel.app
https://dpeng817-docs-in-airflow.dagster.dagster-docs.io

Direct link to changed pages:

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,
Copy link

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.

@dpeng817 dpeng817 force-pushed the dpeng817/docs/in-airflow branch 2 times, most recently from a700b73 to 796ef48 Compare November 6, 2024 22:21
Copy link

github-actions bot commented Nov 6, 2024

Deploy preview for dagster-docs-beta ready!

Preview available at https://dagster-docs-beta-ewnyotw10-elementl.vercel.app

Direct link to changed pages:

Comment on lines +96 to +99
if task.task_id == "my_task_needs_more_retries":
return CustomAuthTaskProxyOperator(task_id=task_id, retries=3)
else:
return CustomAuthTaskProxyOperator(task_id=task_id)
Copy link

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.

@cmpadden cmpadden self-requested a review November 7, 2024 17:21
Base automatically changed from dpeng817/docs/mapping to master November 7, 2024 22:27
@dpeng817 dpeng817 merged commit 6c3f966 into master Nov 7, 2024
2 of 3 checks passed
@dpeng817 dpeng817 deleted the dpeng817/docs/in-airflow branch November 7, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants