Skip to content
Sign in

cron

v0.22.4

Run functions on cron schedules — hosts `cron::on-tick`; each observer of it passes `{ expression }` as args and receives that expression's ticks.

license: Apache-2.0Used in 1 kitcronjobscheduletimer

Install

bash
iii call compose::add worker=cron@next

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions2

cron::on-tick

Function

One call per fire of a cron expression. Observe it with args { expression } (UTC; 6 fields: sec min hour day month weekday, a 7th year field is accepted); every observer of that expression receives { expression, scheduled_time, actual_time } once per fire. Only the cron worker calls it.

Request
  • actual_timestringrequired

    When the worker fired it: RFC 3339 in UTC with a `+00:00` offset.

  • expressionstringrequired

    The expression that fired, exactly as its observers passed it in args.

  • scheduled_timestringrequired

    The fire's scheduled time: RFC 3339 in UTC with a `+00:00` offset, whole seconds.

Response
  • actual_timestringrequired

    When the worker fired it: RFC 3339 in UTC with a `+00:00` offset.

  • expressionstringrequired

    The expression that fired, exactly as its observers passed it in args.

  • scheduled_timestringrequired

    The fire's scheduled time: RFC 3339 in UTC with a `+00:00` offset, whole seconds.

cron::ui-content

Function

Serve the cron worker's injected console UI assets (the target of its ade::ui::asset observers; the console calls it through each asset's observer with {path}).

Request
  • pathstringrequired

    The asset path from the observer's args (e.g. `state/page.js`).

Response
  • contentstringrequired

    The asset source, verbatim.

  • content_typestringrequired

    MIME type the console should serve the asset with.

Search the registry

Find workers, kits and executables, or jump to a page.