Skip to content

[Bug] Cron not working properly #95

@XiaoTiann

Description

@XiaoTiann

Describe the bug
So I tried to use the cron for some script of mine, and it keep failing while i have range in hours section

To Reproduce
Steps to reproduce the behavior:

  1. So i have 0 17-23 * * sun
  2. It only run once at 17 and nothing else

Additional context
After checking, i believe that this is due to when minutes is > maxUnit, and we have self.hours, it won't add another hours onto it, that why it became 0 17, but it is already past, so it won't find another nextTime, it stucks there until next cron or restart
I believe, list should also have the same bug, for now i know steps is the working properly for now

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions