fix(v2-scheduler): avoid restart loops when scheduler is disabled
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user