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 Type
    Method
    Description
    void
    scheduled(Cron cron, Env env, ExecutionCtx ctx)
    Runs one scheduled invocation.
  • Method Details

    • scheduled

      void scheduled(Cron cron, Env env, ExecutionCtx ctx)
      Runs one scheduled invocation.
      Parameters:
      cron - the trigger that fired
      env - the bindings declared in the Wrangler configuration
      ctx - the invocation context