Skip to content

RepeatType.Daily scheduled tasks in the past somehow fail to do time travel catch up and prevent other scheduled tasks from running #630

@Ixrec

Description

@Ixrec

I don't understand why this is possible, but I'm quite convinced it's what happened, because I was manually adding and removing tasks from scheduled-tasks.conf on Izzy's server and observing her failing to do .remindme DMs.

Note that RepeatType.Daily is different from a RepeatType.Relative of 1 day/24 hours/etc.

My only guess as to a root cause is that this .AddDays(1) loop somehow became an infinite loop because datetimes are evil:

while (job.ExecuteAt <= DateTimeHelper.UtcNow) job.ExecuteAt.AddDays(1);

but I couldn't reproduce this with the specific datetime on one of the jobs that appeared to have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Use severity level labels (level: <level>) to show the severity.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions