diff options
| author | Igor Zinkovsky <igor@deno.com> | 2023-11-01 11:57:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-01 11:57:55 -0700 |
| commit | 01d3e0f317ca180bbf0ac8a17c6651869110e02f (patch) | |
| tree | b8e3bb91e87cf396bfa782f6377158f8a170b32b /Cargo.toml | |
| parent | 82643857cc77a80f9a819584035ec147a6114553 (diff) | |
feat(cron) implement Deno.cron() (#21019)
This PR adds unstable `Deno.cron` API to trigger execution of cron jobs.
* State: All cron state is in memory. Cron jobs are scheduled according
to the cron schedule expression and the current time. No state is
persisted to disk.
* Time zone: Cron expressions specify time in UTC.
* Overlapping executions: not permitted. If the next scheduled execution
time occurs while the same cron job is still executing, the scheduled
execution is skipped.
* Retries: failed jobs are automatically retried until they succeed or
until retry threshold is reached. Retry policy can be optionally
specified using `options.backoffSchedule`.
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml index d2a4f6638..d6c8c81cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ members = [ "ext/broadcast_channel", "ext/cache", "ext/console", + "ext/cron", "ext/crypto", "ext/fetch", "ext/ffi", @@ -56,6 +57,7 @@ denokv_remote = "0.2.3" deno_broadcast_channel = { version = "0.115.0", path = "./ext/broadcast_channel" } deno_cache = { version = "0.53.0", path = "./ext/cache" } deno_console = { version = "0.121.0", path = "./ext/console" } +deno_cron = { version = "0.1.0", path = "./ext/cron" } deno_crypto = { version = "0.135.0", path = "./ext/crypto" } deno_fetch = { version = "0.145.0", path = "./ext/fetch" } deno_ffi = { version = "0.108.0", path = "./ext/ffi" } @@ -133,6 +135,7 @@ rustls-webpki = "0.101.4" rustls-native-certs = "0.6.2" webpki-roots = "0.25.2" scopeguard = "1.2.0" +saffron = "=0.1.0" serde = { version = "1.0.149", features = ["derive"] } serde_bytes = "0.11" serde_json = "1.0.85" |
