Generate

Produces events on a schedule. Source task — typically first in a flow.

Configuration

- generate:
    name: ticker
    interval: "5s"

Fields

FieldTypeDefaultDescription
namestringrequiredTask name.
payloadobjectStructured data to include in each event.
intervaldurationInterval schedule (e.g., 5s, 1m). Mutually exclusive with cron.
cronstringCron expression. Mutually exclusive with interval.
timezonestringUTCTimezone for cron evaluation.
countintMax events to generate. Runs indefinitely if omitted.
allow_rerunboolfalseReset the counter on restart.
ack_timeoutdurationFlow completion timeout.
depends_onlistUpstream task names.
retryobjectRetry configuration.

Examples

Interval with payload:

- generate:
    name: heartbeat
    interval: "1m"
    payload:
      type: heartbeat
      source: flowgen

Cron schedule:

- generate:
    name: daily_trigger
    cron: "0 2 * * *"
    timezone: "America/New_York"

Run once:

- generate:
    name: init
    interval: "1s"
    count: 1