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

[AssetLiveDataProvider] Retry asset keys that fail to fetch after the poll interval. #17393

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

salazarm
Copy link
Contributor

Summary & Motivation

Currently if an asset key fails to fetch we never retry fetching it again because it gets stuck in the requested state. This PR fixes that and marks them as "fetched" when this happens. This has the consequence of (1) letting us move on to the next set of asset keys which could succeed and (2) it means we'll retry the failed asset keys again after the polling interval threshold is crossed.

How I Tested These Changes

jest. Locally threw an error and saw that we did end up retrying the failed asset keys after the polling interval was met.

@github-actions
Copy link

github-actions bot commented Oct 25, 2023

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-209cmtx17-elementl.vercel.app
https://salazarm-asset-live-data-provider-try-catch.core-storybook.dagster-docs.io

Built with commit 7b50b85.
This pull request is being automatically deployed with vercel-action

Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks for fixing! The test case looks great (and also seems like a good one for us to reference in the future for apollo+hook+timer testing)

@salazarm salazarm force-pushed the salazarm/asset-live-data-provider-try-catch branch from ff6f463 to 7b50b85 Compare October 31, 2023 14:19
@salazarm salazarm merged commit 2840be6 into master Oct 31, 2023
1 check passed
@salazarm salazarm deleted the salazarm/asset-live-data-provider-try-catch branch October 31, 2023 14:32
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