Skip to content

RFC for cron system #10

@danslimmon

Description

@danslimmon
every 1 week on tuesday
every 1 week on wednesday
every 2 weeks on friday [needs a "starting"]
	- could just interpret it as:
		- do (weeks since unix epoch) % 2
		- do it if that's 0
every 3 months on the 11th [needs a "starting"]
	- this would be interpreted as:
		- (months since unix epoch) % 3
		- pick a quotient from [0,2] by …

idk. something like that. or just use a start date (that would be easier)

Schedule.Next(time.Time) can be as dumb as "evaluate the criterion against every day starting from the given time until it matches."

another way it could work is: there's a log of upcoming recurrences, and each time a recurrence is processed, we add a new instance to that log

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