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

Retry Dimensions pubs query #83

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Retry Dimensions pubs query #83

merged 1 commit into from
Jul 16, 2024

Conversation

lwrubel
Copy link
Collaborator

@lwrubel lwrubel commented Jul 16, 2024

We have seen the dimensions_harvest_pubs task fail with 502 and 408 errors. Trying to automatically retry several times in those cases.

Tested locally running task.

@@ -138,7 +138,7 @@ def sul_pubs_csv(tmp_path):

def test_dimensions_pubs_df(dimensions_pubs_csv):
lazy_df = merge_pubs.dimensions_pubs_df(dimensions_pubs_csv)
assert type(lazy_df) == pl.lazyframe.frame.LazyFrame
assert lazy_df.isinstance(pl.lazyframe.frame.LazyFrame)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

CI runs latest version of Ruff and flagged these linting errors from new rules.

@@ -138,7 +138,7 @@ def sul_pubs_csv(tmp_path):

def test_dimensions_pubs_df(dimensions_pubs_csv):
lazy_df = merge_pubs.dimensions_pubs_df(dimensions_pubs_csv)
assert type(lazy_df) == pl.lazyframe.frame.LazyFrame
assert lazy_df.isinstance(pl.lazyframe.frame.LazyFrame)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this needs to be isinstance(lazy_df, pl.lazyframe.frame.LazyFrame)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

@lwrubel lwrubel force-pushed the retry-dimensions branch from ff182cc to 0536631 Compare July 16, 2024 15:39
@lwrubel lwrubel merged commit 45deb75 into main Jul 16, 2024
1 check passed
@lwrubel lwrubel deleted the retry-dimensions branch July 16, 2024 15:47
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