sonda/internal/about
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi e3843ad7d6 feat(jobs): background jobs for artist photos and descriptions
Add one engine, internal/jobs, that runs the jobs which go through the whole
library: start, stop, progress, one at a time, give up after five failures in
a row, end at once when a provider is off.

- The covers job now runs on the engine; its API is unchanged.
- POST/GET/DELETE /library/artist-images looks for the picture of every
  artist of the library that has a MusicBrainz id.
- POST/GET/DELETE /library/descriptions does the same for the Wikipedia
  description.
- ?refresh=true searches everything again and never replaces a stored result
  by a failure; artists without an id are never touched, nothing is looked up
  by name.
- images.Service.EnsureArtistImage and about.Service.Ensure do the work for one
  artist; the lists come from ImageRepo and DiscoveryRepo.
- jobs.Runner binds a job to the application context, replacing the two
  hand-written controls.
- OpenAPI, contract test and README describe the new endpoints and say that
  they are bulk requests.
2026-11-12 09:58:45 +01:00
..
about.go feat(jobs): background jobs for artist photos and descriptions 2026-11-12 09:58:45 +01:00
about_test.go fix(about): unusable pages fall through, MusicBrainz switch, merged items 2026-11-11 21:45:20 +01:00
job.go feat(jobs): background jobs for artist photos and descriptions 2026-11-12 09:58:45 +01:00
job_test.go feat(jobs): background jobs for artist photos and descriptions 2026-11-12 09:58:45 +01:00
source.go fix(about): unusable pages fall through, MusicBrainz switch, merged items 2026-11-11 21:45:20 +01:00
source_test.go fix(about): unusable pages fall through, MusicBrainz switch, merged items 2026-11-11 21:45:20 +01:00