mix durable.send_event (Durable v0.1.0-rc)

View Source

Delivers an event to a workflow that is suspended on wait_for_event/2, wait_for_any/2, or wait_for_all/2.

Payload parsing rules match mix durable.provide_input — JSON when it looks like JSON, raw string otherwise.

Usage

mix durable.send_event WORKFLOW_ID EVENT_NAME PAYLOAD [options]

Options

  • --json-file PATH - Read payload from a file instead
  • --name NAME - The Durable instance name (default: Durable)

Examples

mix durable.send_event ab12 payment_confirmed '{"amount":99.99}'
mix durable.send_event ab12 shipping_update delivered