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`. --- tools/core_import_map.json | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/core_import_map.json b/tools/core_import_map.json index 3c1d65f93..0f356eb97 100644 --- a/tools/core_import_map.json +++ b/tools/core_import_map.json @@ -3,6 +3,7 @@ "ext:deno_broadcast_channel/01_broadcast_channel.js": "../ext/broadcast_channel/01_broadcast_channel.js", "ext:deno_cache/01_cache.js": "../ext/cache/01_cache.js", "ext:deno_console/01_console.js": "../ext/console/01_console.js", + "ext:deno_cron/01_cron.ts": "../ext/cron/01_cron.ts", "ext:deno_crypto/00_crypto.js": "../ext/crypto/00_crypto.js", "ext:deno_fetch/20_headers.js": "../ext/fetch/20_headers.js", "ext:deno_fetch/21_formdata.js": "../ext/fetch/21_formdata.js", -- cgit v1.2.3