Skip to content
Registry

cron

v0.21.9

Schedule functions with cron expressions - registers the `cron` trigger type.

license: Apache-2.0cronjobscheduletimer

Install

bash
iii trigger compose::add worker=cron@0.21.9

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

Functions2

cron::on-config-change

Function

Internal: reload cron configuration from the authoritative store on change.

Request
Empty object
Response
  • okbooleanrequired

cron::ui-content

Function

Serve the cron worker's injected console UI assets (content function for its console:script / console:style triggers).

Request
  • pathstringrequired

    The asset path from the trigger config (e.g. `state/page.js`).

Response
  • contentstringrequired

    The asset source, verbatim.

  • content_typestringrequired

    MIME type the console should serve the asset with.

Triggers1

cron

Trigger

Cron-based scheduled triggers

Invocation
  • condition_function_idstring

    Optional function ID to evaluate before invoking the handler.

  • expressionstringrequired

    Cron expression (6-field format: sec min hour day month weekday; a 7th year field is accepted).

Return
  • actual_timestringrequired

    Actual execution time (RFC3339)

  • job_idstringrequired

    Unique job identifier

  • scheduled_timestringrequired

    Scheduled execution time (RFC3339)

  • triggerstringrequired

    Always "cron"

Search the registry

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