addresses https://github.com/kongluoxing/celerybeatredis/issues/1 -- what happens is that Scheduler.merge_inplace keeps only the union; which means anything that's not already in redis (like a schedule from the celery config) is lost. The easy solution is to just add them in redis on setup, but I'm not sure at all if it is the best approach. I'll be happy to update with a different approach if you prefer.
Two changes here:
jsondump
added onPeriodicTask
; seems like this was lost when that pr was merged, but it is still called fromRedisScheduler.sync
.Scheduler.merge_inplace
keeps only the union; which means anything that's not already in redis (like a schedule from the celery config) is lost. The easy solution is to just add them in redis on setup, but I'm not sure at all if it is the best approach. I'll be happy to update with a different approach if you prefer.