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] Handle run retries #25761

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

dpeng817
Copy link
Contributor

@dpeng817 dpeng817 commented Nov 6, 2024

Summary & Motivation

Previously, when launching runs to a "migrated" asset, we would ignore run retries - so if the original run failed, regardless of whether a retry succeeded, we would fail the airflow run.

This PR fixes to correctly account for run retries in Dagster - by hooking into the retry machinery that @jamiedemaria built.

How I Tested These Changes

Adds a new test which simulates having auto-run-execution by using materialize - and succeeding the last retry. Ensure that the airflow run succeeds, and the asset materializes eventually.

The reason it's necessary to simulate auto-run-execution is because we use sqlite in tests as opposed to postgres - which we need in order to enable run retries.

I initially attempted to materialize assets inline within the body of the asset itself, but that seems to screw up some global context, so instead do it via graphql queries.

Changelog

  • [dagster-airlift] correctly support auto-run-retries when kicking of materializations of Dagster-proxied assets from airflow.

Copy link
Contributor Author

dpeng817 commented Nov 6, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@dpeng817 dpeng817 requested review from alangenfeld, benpankow and schrockn and removed request for benpankow November 6, 2024 02:46
@dpeng817 dpeng817 marked this pull request as ready for review November 6, 2024 02:46
@dpeng817 dpeng817 force-pushed the dpeng817/run_retries branch 2 times, most recently from 0db4861 to 4df8473 Compare November 6, 2024 17:27
@dpeng817 dpeng817 requested a review from gibsondan November 6, 2024 17:56
@dpeng817
Copy link
Contributor Author

closing for now, will reopen when @jamiedemaria 's pr adding will_retry tag lands.

@dpeng817 dpeng817 closed this Nov 19, 2024
@dpeng817 dpeng817 reopened this Dec 23, 2024
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