Commit 173c2cd
committed
feat(sync): split version polling into fast metadata + hourly search schedules
The single 2-minute schedule per artifact paginated the Sonatype REST
component-search on every tick — wasteful for what is nearly always a
"no new versions" answer. Poll maven-metadata.xml every 2 minutes for
fast new-version detection and fall back to full REST pagination once
an hour as a correctness backstop. Metadata can list a version before
its assets are indexed, so a VersionHasAssets probe gates each
candidate to prevent permanent zero-asset ghost rows.
TriggerSync gains ?source=metadata|search for on-demand routing.
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>1 parent 7ca8673 commit 173c2cd
20 files changed
Lines changed: 1693 additions & 708 deletions
File tree
- api
- cmd/devtest
- db
- docs
- internal
- activity
- db
- mocks
- httpapi
- repository
- mocks
- sonatype
- mocks
- workflow
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments