taskiq-redis
taskiq-redis copied to clipboard
Variable `self._is_first_run` in ListRedisScheduleSource doesn't work
https://github.com/taskiq-python/taskiq-redis/blob/513b77e12bd8424d433ef9f7101add2df138d688/taskiq_redis/list_schedule_source.py#L193
According to the comments, this condition should be
if not self._skip_past_schedules and self._is_first_run:
Otherwise, the variable self._is_first_run is not used at all.
Yeah. I should fix this comment. Because as it turned out, you should fetch previous schedules every time. Because otherwise you loose them completely.