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

Scheduled Functions feature requests #316

Closed
swyxio opened this issue Feb 1, 2022 · 3 comments
Closed

Scheduled Functions feature requests #316

swyxio opened this issue Feb 1, 2022 · 3 comments
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@swyxio
Copy link

swyxio commented Feb 1, 2022

Congrats on launching Scheduled Functions! i've been working on a similar product and thought I should note down immediate observations on features you may wish to add.

Feature menu for you to choose:

  • Manual trigger in UI and in CLI - no need to write code to manual trigger
    • UI to backfill failed runs?
  • Manual pause in UI and CLI
  • View more than 1 next event in UI and in CLI
    • useful as sanity check in case user typed their cron syntax
    • basically anything doable via code should be available in UI and CLI and vice versa
  • jitter start aka (+/- 100ms) - useful for bots, spreading out spikes
  • set/update max # of invocations until schedule terminates itseld
  • allow user to specify timezone, dont assume UTC
  • "Last of" quartz scheduling syntax aka Last weekday of month, last Friday of month, see cloudflare
  • holiday exclusion calendar
  • ability to return value in function that will can be used in next invocation
    • beware overlapping schedules/background
  • context value or method to check amount of time until next invocation
  • function that can update its own schedule

you should know how to reach me if you need clarification on any of these. and of course, no offense taken if all are rejected

@swyxio swyxio added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Feb 1, 2022
@albertosantini
Copy link

allow user to specify timezone, dont assume UTC

This ^ is very important for DSL.
You need to be sure the job runs following the rules of a given timezone in terms of change of time.

Like in cron https://www.npmjs.com/package/cron

const weeklyJob = new CronJob("5 5 9 * * MON", () => {
    run();
}, null, false, "Europe/Rome");

@peroxy
Copy link

peroxy commented Feb 10, 2022

Manual trigger in UI and in CLI - no need to write code to manual trigger

This is something I would love to have as well, especially for trying out the scheduled function during deploy previews.

@swyxio
Copy link
Author

swyxio commented Aug 2, 2023

RIP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

3 participants