import { type EnqueueJobOpOptions } from "https://deno.land/x/kv_cron@0.0.2/mod.ts";
EnqueueJobOpOptions defines the options for enqueuing a cron job.
Properties
schedule: string | JSONSchedule
schedule is the cron expression that defines when the cron job is triggered.
optional
date: Datedate is the date which the cron job is relative to.
optional
amount: Deno.KvU64amount is the number of times the cron job should be triggered.
backoffSchedule can be used to specify the retry policy for failed
executions. Each element in the array represents the number of
milliseconds to wait before retrying the execution. For example,
[1000, 5000, 10000]
means that a failed execution will be retried at
most 3 times, with 1 second, 5 seconds, and 10 seconds delay between each
retry.