Package dev.gmitch215.bytebox
Interface Scheduled
public interface Scheduled
Handles Cron Triggers. Cloudflare waits up to fifteen minutes for a scheduled invocation to
finish, which is a far larger budget than the CPU limit a request gets, and an uncaught exception
is logged without a retry.
Cron Triggers are limited per account rather than per Worker: five on the free plan, two hundred and fifty on paid.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidscheduled(Cron cron, Env env, ExecutionCtx ctx) Runs one scheduled invocation.
-
Method Details
-
scheduled
Runs one scheduled invocation.- Parameters:
cron- the trigger that firedenv- the bindings declared in the Wrangler configurationctx- the invocation context
-