Files
Zach LeslieandGitHub d2438570f9 Initial retention job (#4904)
* Initial retention job

* Generate manifest

* Clean up retention test

* Lint

* Fix work test for compaction job

* Add provider package to handle the job loops

* Improve nil job handling

* Refactor backendscheduler to leverage provider

* Generate manifest

* Pick pint

* Fix race in shutdown

* Fix race in test

* Drop spurious debug messages

* Include compaction backoff when no compactions are needed

* Configure the test backoff

* Drop comment

* Fix regression so we skip blocks which are already mentioned

* Drop unused config after relocate

* Leverage existing interface for HasBlocks call on compaction

* Clean up config

* Drop unused method

* Improve retention test coverage

* Clean, trace and metric the scheduler

* Clean, trace and metric the compaction provider; prefer backoff over poll interval

* Generate manifest, update test config reference

* Fix lint

* Avoid channel block for context handling

* Address PR feedback
2025-04-11 16:35:03 +00:00

10 lines
209 B
Go

package backendscheduler
import "errors"
var (
ErrFlushFailed = errors.New("failed to flush cache to store")
ErrNoJobsFound = errors.New("no jobs found")
ErrNilJob = errors.New("nil job received")
)