Skip to content

Timer reference to 'now' not reset on delete #206

@ddelger

Description

@ddelger

In the internal loop of the run method the local variable now is updated when a new entry is added but not deleted.

https://github.com/robfig/cron/blob/v3/cron.go#L280

This results in the timer getting reset based an on outdated reference to now. Causing the trigger to later than specified.

https://github.com/robfig/cron/blob/v3/cron.go#L244

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions