Skip to content

Fix retries for get_timeseries_buckets_proto.sync_detailed#58

Merged
gabrys merged 2 commits intomainfrom
gabrys/fix-retries-for-fetch-metric-buckets
Sep 15, 2025
Merged

Fix retries for get_timeseries_buckets_proto.sync_detailed#58
gabrys merged 2 commits intomainfrom
gabrys/fix-retries-for-fetch-metric-buckets

Conversation

@gabrys
Copy link
Contributor

@gabrys gabrys commented Sep 12, 2025

Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

@@ -147,7 +166,7 @@ def fetch_time_series_buckets(
call_api = retry.handle_errors_default(with_neptune_client_metadata(get_timeseries_buckets_proto.sync_detailed))
Copy link
Contributor

@michalsosn michalsosn Sep 12, 2025

Choose a reason for hiding this comment

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

hmm, I guess

call_api = retry.handle_errors_default(with_neptune_client_metadata(lambda : get_timeseries_buckets_proto.sync_detailed(client=client, body=File(payload=BytesIO(request_object.SerializeToString())))))

response = call_api()

should recreate BytesIO on each retry.

I assume File2 is more like a test of an idea given the name :p

This bug seems like sth that could return in the future, so a test would be nice

@gabrys gabrys force-pushed the gabrys/fix-retries-for-fetch-metric-buckets branch from 96fb95c to 79ed7f8 Compare September 15, 2025 07:08
@gabrys gabrys force-pushed the gabrys/fix-retries-for-fetch-metric-buckets branch 2 times, most recently from 6499604 to ae77d9f Compare September 15, 2025 12:28
@gabrys gabrys force-pushed the gabrys/fix-retries-for-fetch-metric-buckets branch from ae77d9f to 9d6231e Compare September 15, 2025 15:21
@gabrys gabrys added this pull request to the merge queue Sep 15, 2025
Merged via the queue into main with commit fec28b1 Sep 15, 2025
18 checks passed
@gabrys gabrys deleted the gabrys/fix-retries-for-fetch-metric-buckets branch September 19, 2025 09:59
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