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
Schedule source shouldn't delete existing schedules during startup #65
AsyncpgScheduleSource.startup() truncates ALL schedules — dynamic schedules added via add_schedule() can't survive a restart when mixed with label crons
Expected behavior
We should not touch at least dynamic schedules.
I see two potential solutions here:
mark dynamic / static schedules in database and delete only static onces
add flag to just skip all logic about truncate + recreate at once.
UPDATE: Let's just drop logic about finding schedules (let LabelScheduleSource do that) and just never delete any schedules that live in our db.
Steps to reproduce
Just call startup() + add schedule + restart broker with schedule source
Activity
refactor!: never delete stored schedules on startup; remove label-bas…