drupflare/worker - v1.0.4
    Preparing search index...

    Function cronStep

    • Does one unit of cron work and returns the next cursor.

      It is a function of (cursor, deps) so the caller owns persistence and the chain is testable without a Durable Object. mayContinue is the CPU constraint as data: a sql unit costs microseconds so the caller may run another in the same invocation, while a php unit enters the interpreter and must be last (as fillBatchSize() never batches across a render).

      result is the unit's own ledger or reply, typed as an index signature (a bare object makes its fields unreadable).

      Parameters

      • rawCursor: CursorInput

        whatever storage returned; undefined is real (an evicted object has nothing)

      • deps: CronDeps

        the transport and clock, injected so the chain owns neither

      • options: CronOptions = {}

        passed through to cronUnits() and the GC passes

      Returns Promise<CronStep>