No description
Find a file
Deluan Quintão 5cd1fcb492
feat(scheduler): add crontab(5) random ~ syntax support (#5233)
* feat(scheduler): add CrontabSchedule with crontab(5) random ~ syntax

Implement ParseCrontab() that extends robfig/cron with support for
the crontab(5) random ~ operator (e.g., 0~30 * * * *). Random values
are resolved fresh on each Next() call for load spreading.

Supports A~B, ~B, A~, and bare ~ forms in all 6 fields (including
seconds). Expressions without ~ delegate to robfig's standard parser
with zero overhead.

Integrates into scheduler.Add() and conf.validateSchedule() so that
scanner.schedule and backup.schedule config values accept ~ syntax.

* refactor(scheduler): resolve random ~ values once at parse time

Change from per-Next() randomization to per-parse randomization,
matching crontab(5) semantics. This prevents double-firing within
the same period when random values land after the current time.

ParseCrontab now resolves ~ fields to concrete values, substitutes
them into the spec string, and delegates to robfig's parser. This
eliminates CrontabSchedule, randomField, and resolveField entirely.

* test(scheduler): replace WaitGroup with channel for job execution synchronization

Signed-off-by: Deluan <deluan@navidrome.org>

---------

Signed-off-by: Deluan <deluan@navidrome.org>
2026-03-20 08:57:13 -04:00
.devcontainer feat(scanner): upgrade TagLib to 2.2, with MKA/Matroska support (#5071) 2026-02-21 16:52:48 -05:00
.github chore(deps): bump docker/build-push-action in /.github/workflows (#5164) 2026-03-09 17:19:03 -04:00
adapters fix(scanner): widen WASM panic recovery to cover tag/property reading (#5223) 2026-03-18 08:03:46 -04:00
cmd feat: add artist image uploads and image-folder artwork source (#5198) 2026-03-15 22:19:55 -04:00
conf feat(scheduler): add crontab(5) random ~ syntax support (#5233) 2026-03-20 08:57:13 -04:00
consts feat(ui): add cover art support for internet radio stations (#5229) 2026-03-18 18:57:33 -04:00
contrib build: add packages for deb and rpm to release (#3202) 2024-10-26 13:31:45 -04:00
core fix(tests): fix race condition in CacheWarmer pre-cache size test 2026-03-19 13:14:24 -04:00
db feat(ui): add cover art support for internet radio stations (#5229) 2026-03-18 18:57:33 -04:00
git feat(plugins): experimental support for plugins (#3998) 2025-06-22 20:45:38 -04:00
log feat(server): add syslog priority prefixes for systemd-journald (#5192) 2026-03-15 14:14:05 -04:00
model feat(ui): add cover art support for internet radio stations (#5229) 2026-03-18 18:57:33 -04:00
persistence feat(ui): add cover art support for internet radio stations (#5229) 2026-03-18 18:57:33 -04:00
plugins remove built-in Spotify integration (#5197) 2026-03-15 13:18:54 -04:00
release fix: linux service should restart when upgrading (#5001) 2026-02-09 17:11:45 -05:00
resources feat(ui): add Slovak language translation (#5231) 2026-03-19 13:33:09 -04:00
scanner feat: add artist image uploads and image-folder artwork source (#5198) 2026-03-15 22:19:55 -04:00
scheduler feat(scheduler): add crontab(5) random ~ syntax support (#5233) 2026-03-20 08:57:13 -04:00
scripts build(worktree): add script for setting up git worktrees 2026-03-17 21:34:00 -04:00
server feat(ui): add cover art support for internet radio stations (#5229) 2026-03-18 18:57:33 -04:00
tests feat(ui): add cover art support for internet radio stations (#5229) 2026-03-18 18:57:33 -04:00
ui feat(ui): add cover art support for internet radio stations (#5229) 2026-03-18 18:57:33 -04:00
utils refactor(shellquote): replace go-shellquote with custom shell quoting implementation 2026-03-14 10:23:45 -04:00
.dockerignore fix: add music.old to .dockerignore and .gitignore 2026-02-06 07:40:05 -05:00
.git-blame-ignore-revs Move project to Navidrome GitHub organization 2021-02-06 21:47:19 -05:00
.gitignore build(worktree): add script for setting up git worktrees 2026-03-17 21:34:00 -04:00
.golangci.yml chore: upgrade golangci-lint to 2.11 and fix lint issues 2026-03-06 19:23:47 -05:00
.nvmrc chore(deps): update all dependencies (#4618) 2025-10-25 17:05:16 -04:00
CODE_OF_CONDUCT.md Use Contributor Covenant v2.0 2020-07-21 14:40:21 -04:00
CONTRIBUTING.md docs: update commit message format in CONTRIBUTING.md 2026-02-20 11:00:34 -05:00
Dockerfile feat(server): implement FTS5-based full-text search (#5079) 2026-02-21 17:52:42 -05:00
go.mod chore(deps): update dependencies for go-sqlite3, golang.org/x packages 2026-03-17 18:34:13 -04:00
go.sum chore(deps): update dependencies for go-sqlite3, golang.org/x packages 2026-03-17 18:34:13 -04:00
LICENSE Change license to GPLv3 2020-01-22 14:48:38 -05:00
main.go feat(server): implement FTS5-based full-text search (#5079) 2026-02-21 17:52:42 -05:00
Makefile build(worktree): add script for setting up git worktrees 2026-03-17 21:34:00 -04:00
Procfile.dev chore(deps): upgrade to Go 1.24.1 (#3851) 2025-03-17 21:08:10 -04:00
README.md feat: add Navidrome Guru on Gurubase.io (#3491) 2024-11-23 17:29:00 -05:00
reflex.conf feat(server): implement FTS5-based full-text search (#5079) 2026-02-21 17:52:42 -05:00

Navidrome logo

Navidrome Music Server  Tweet

Last Release Build Downloads Docker Pulls Dev Chat Subreddit Contributor Covenant Gurubase

Navidrome is an open source web-based music collection server and streamer. It gives you freedom to listen to your music collection from any browser or mobile device. It's like your personal Spotify!

Note: The master branch may be in an unstable or even broken state during development. Please use releases instead of the master branch in order to get a stable set of binaries.

Check out our Live Demo!

Any feedback is welcome! If you need/want a new feature, find a bug or think of any way to improve Navidrome, please file a GitHub issue or join the discussion in our Subreddit. If you want to contribute to the project in any other way (ui/backend dev, translations, themes), please join the chat in our Discord server.

Installation

See instructions on the project's website

Cloud Hosting

PikaPods has partnered with us to offer you an officially supported, cloud-hosted solution. A share of the revenue helps fund the development of Navidrome at no additional cost for you.

PikaPods

Features

  • Handles very large music collections
  • Streams virtually any audio format available
  • Reads and uses all your beautifully curated metadata
  • Great support for compilations (Various Artists albums) and box sets (multi-disc albums)
  • Multi-user, each user has their own play counts, playlists, favourites, etc...
  • Very low resource usage
  • Multi-platform, runs on macOS, Linux and Windows. Docker images are also provided
  • Ready to use binaries for all major platforms, including Raspberry Pi
  • Automatically monitors your library for changes, importing new files and reloading new metadata
  • Themeable, modern and responsive Web interface based on Material UI
  • Compatible with all Subsonic/Madsonic/Airsonic clients
  • Transcoding on the fly. Can be set per user/player. Opus encoding is supported
  • Translated to various languages

Translations

Navidrome uses POEditor for translations, and we are always looking for more contributors

Documentation

All documentation can be found in the project's website: https://www.navidrome.org/docs. Here are some useful direct links:

Screenshots