You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move recurring event fetching to rq.cron.CronScheduler #2
VenFetchJobScheduler in flexmeasures_openadr3/utils/ven_jobs.py keeps its daily ingestion running by re-enqueueing itself at the end of _execute() (in a finally block). This makes the schedule a chain: each run is only scheduled by the previous one.
The finally guards against most in-job failures, but if a worker is restarted (or killed) while handling the job, before it reaches the re-scheduling call, the chain breaks silently and events are never fetched again.
Proposal
Move to rq.cron.CronScheduler, which owns the schedule independently of any single job run. This requires a dedicated rq-cron-scheduler service in docker-compose.yml running something like:
Activity
rq.cron.CronScheduler#3 as a duplicate of this issue[-]Move to `rq.cron.CronScheduler`[/-][+]Move recurring event fetching to `rq.cron.CronScheduler`[/+]nicburgt commentedon Sep 3, 2026
Implemented in #1 now as well