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

Capture db timeout errors for tag key queries #12596

Merged
merged 4 commits into from Mar 1, 2023

Conversation

prha
Copy link
Member

@prha prha commented Feb 28, 2023

Summary & Motivation

We're hitting some timeout 500s for some orgs/deployments. We can capture and suppress these, since the degraded experience in the product is just that there's not autocomplete for tags in the runs filter input (which was the behavior before).

How I Tested These Changes

BK

@vercel
Copy link

vercel bot commented Feb 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated
dagit-storybook ⬜️ Ignored (Inspect) Mar 1, 2023 at 5:47PM (UTC)
dagster ⬜️ Ignored (Inspect) Mar 1, 2023 at 5:47PM (UTC)

@prha prha force-pushed the prha/suppress_timeout_errors branch from 06e5bab to e8e1175 Compare March 1, 2023 15:47
@@ -329,21 +344,21 @@ def test_get_runs_over_graphql(self, graphql_context):
assert len(runs) == 2

all_tag_keys_result = execute_dagster_graphql(read_context, ALL_TAG_KEYS_QUERY)
tag_keys = set(all_tag_keys_result.data["runTagKeys"])
tag_keys = set(all_tag_keys_result.data["runTagKeysOrError"]["keys"])
Copy link
Member

Choose a reason for hiding this comment

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

test the PythonError path - maybe use mock to force throwing

@prha prha merged commit a1b96c7 into master Mar 1, 2023
@prha prha deleted the prha/suppress_timeout_errors branch March 1, 2023 18:15
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.

None yet

2 participants