From 01d3e0f317ca180bbf0ac8a17c6651869110e02f Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Wed, 1 Nov 2023 11:57:55 -0700 Subject: 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`. --- runtime/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/Cargo.toml') diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 4634d758a..7c60fd4a8 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -44,6 +44,7 @@ deno_broadcast_channel.workspace = true deno_cache.workspace = true deno_console.workspace = true deno_core.workspace = true +deno_cron.workspace = true deno_crypto.workspace = true deno_fetch.workspace = true deno_ffi.workspace = true @@ -71,6 +72,7 @@ deno_broadcast_channel.workspace = true deno_cache.workspace = true deno_console.workspace = true deno_core.workspace = true +deno_cron.workspace = true deno_crypto.workspace = true deno_fetch.workspace = true deno_ffi.workspace = true -- cgit v1.2.3