Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for shorthand cron expressions #1628

Closed
alecthomas opened this issue Jun 3, 2024 · 0 comments · Fixed by #1733
Closed

Add support for shorthand cron expressions #1628

alecthomas opened this issue Jun 3, 2024 · 0 comments · Fixed by #1733
Assignees
Labels
good first issue Good for newcomers

Comments

@alecthomas
Copy link
Collaborator

eg.

//ftl:cron 15m

//ftl:cron 1h
@alecthomas alecthomas added the good first issue Good for newcomers label Jun 3, 2024
@github-actions github-actions bot added the triage Issue needs triaging label Jun 3, 2024
@ftl-robot ftl-robot mentioned this issue Jun 3, 2024
@alecthomas alecthomas removed the triage Issue needs triaging label Jun 4, 2024
gak added a commit that referenced this issue Jun 6, 2024
Also added prefix checks eg negative values
gak added a commit that referenced this issue Jun 6, 2024
Also added prefix checks eg negative values
gak added a commit that referenced this issue Jun 6, 2024
Also added prefix checks eg negative values.
@gak gak closed this as completed in #1733 Jun 12, 2024
gak added a commit that referenced this issue Jun 12, 2024
Fixes #1628

Supports:
- Every n seconds: `//ftl:cron 10s`
- Every n minutes: `//ftl:cron 30m`
- Every n hours: `//ftl:cron 12h` (Starting at UTC midnight)
- Day of the week (UTC midnight): `//ftl:cron Friday` or `//ftl:cron
Fri`
  - Case insensitive with at least the first 3 chars of the day name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants