fix(v2-scheduler): avoid restart loops when scheduler is disabled

This commit is contained in:
Alfredo Di Stasio
2026-03-20 14:49:48 +01:00
parent ad85e40688
commit 1aad6945c7
5 changed files with 61 additions and 2 deletions

View File

@ -282,6 +282,7 @@ Notes:
- image: `registry.younerd.org/hoopscout/scheduler:${APP_IMAGE_TAG:-latest}`
- command: `/app/scripts/scheduler.sh`
- interval: `DAILY_ORCHESTRATION_INTERVAL_SECONDS`
- disabled idle interval: `SCHEDULER_DISABLED_SLEEP_SECONDS`
### Scheduler entrypoint/runtime expectations
@ -290,6 +291,7 @@ Notes:
- scheduler is disabled unless:
- compose `scheduler` profile is started
- `SCHEDULER_ENABLED=1`
- if scheduler service is started while disabled (`SCHEDULER_ENABLED=0`), it does not exit; it enters idle sleep mode to avoid restart loops with `restart: unless-stopped`
- this keeps default runtime simple while supporting daily automation
### LBA extractor assumptions and limitations (MVP)