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] airflow op swizzler #23402

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

dpeng817
Copy link
Contributor

@dpeng817 dpeng817 commented Aug 3, 2024

Adds functionality for mark_as_dagster_migrating to swizzle out an operator for the dagster operator.

Adds a test that runs against live airflow and dagster, and ensures that when a run of the dag marked as "migrated" is kicked off, that it results in an asset materialization appearing in dagster.

@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from 4325983 to e9a752e Compare August 3, 2024 23:59
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from 196c139 to 3adcf2d Compare August 3, 2024 23:59
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from e9a752e to ebc04fe Compare August 4, 2024 00:04
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from 3adcf2d to 3c646de Compare August 4, 2024 00:04
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from ebc04fe to 2e766d4 Compare August 5, 2024 02:09
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from 3c646de to 709b9fc Compare August 5, 2024 02:09
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from 2e766d4 to e12b6b5 Compare August 5, 2024 03:13
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from 709b9fc to a115058 Compare August 5, 2024 03:13
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from e12b6b5 to 40cea78 Compare August 5, 2024 16:22
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from a115058 to a6e6746 Compare August 5, 2024 16:22
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from 40cea78 to f89e978 Compare August 5, 2024 16:40
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from a6e6746 to 8f65ed1 Compare August 5, 2024 16:41
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from f89e978 to 24f7927 Compare August 5, 2024 17:54
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from 8f65ed1 to b7bc220 Compare August 5, 2024 17:54
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from 24f7927 to d6a604f Compare August 5, 2024 20:53
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from b7bc220 to f05d05a Compare August 5, 2024 20:54
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from d6a604f to 28c5820 Compare August 5, 2024 21:06
@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from f05d05a to d955dd5 Compare August 5, 2024 21:06
@dpeng817 dpeng817 force-pushed the dpeng817/dagster_operator branch from 28c5820 to d713198 Compare August 7, 2024 22:34
@dpeng817
Copy link
Contributor Author

@schrockn made one more big change to this PR that introspects the baseoperator args, and uses that construct the DagsterOperator.

The goal here is to be more resistant to changes in BaseOperator args. Lmk what you think.

Copy link
Member

@schrockn schrockn left a comment

Choose a reason for hiding this comment

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

Please heed final comments

@dpeng817 dpeng817 force-pushed the dpeng817/airflow_op_switcher branch from 0abbf9f to 6c722d4 Compare August 12, 2024 23:06
@dpeng817 dpeng817 merged commit 65c998e into master Aug 13, 2024
1 check passed
@dpeng817 dpeng817 deleted the dpeng817/airflow_op_switcher branch August 13, 2024 16:09
PedramNavid pushed a commit that referenced this pull request Aug 14, 2024
Adds functionality for `mark_as_dagster_migrating` to swizzle out an
operator for the dagster operator.

Adds a test that runs against live airflow and dagster, and ensures that
when a run of the dag marked as "migrated" is kicked off, that it
results in an asset materialization appearing in dagster.
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