Skip to content

Conversation

@guillaumemichel
Copy link
Collaborator

@guillaumemichel guillaumemichel commented Oct 9, 2025

Closes #1160

Based on #1144

Description

Add functions to persist the state of the provide queue to a datastore, and then to load persisted state from datastore back to the queue. This is required to allow resuming provide operations after a restart (see #1159).

Integrated into SweepingProvider.

Added a TestQueuePersistence.

Checklist

@guillaumemichel guillaumemichel requested a review from a team as a code owner October 9, 2025 12:46
Copy link
Contributor

@gammazero gammazero left a comment

Choose a reason for hiding this comment

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

see comment

Base automatically changed from provider-stats to master October 17, 2025 19:34
@guillaumemichel guillaumemichel merged commit 095fe97 into master Oct 17, 2025
9 checks passed
@gammazero gammazero deleted the persist-provide-queue branch October 20, 2025 14:28
guillaumemichel added a commit that referenced this pull request Oct 20, 2025
* provider: stats

* use proper struct for stats

* provide queue stats

* counting ongoing operations

* provide counts

* floatTimeSeries

* draft: last metrics

* refactor

* gofmt

* tests

* bump reservedpool

* make provider inside buffered.SweepingProvider public

* format

* fix: flaky TestStats

* avg region size metric

* fix: ongoing provides counter

* float64 avgPrefixLen

* provider: persist provide queue

* persist & load provide queue to/from datastore

* configure datastore

* test: provide queue persistence after close

* limit batch size

* addressing review

* test: fix edge case
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.

provider: persist provide queue on shutdown

3 participants