mix durable.provide_input (Durable v0.1.0-rc)
View SourceUnblocks a workflow that is waiting on wait_for_input/2 (or any of
its convenience wrappers like wait_for_approval, wait_for_choice,
wait_for_text, wait_for_form).
Use this when the dashboard is down, when you want to script a response, or when you just prefer the terminal.
Usage
mix durable.provide_input WORKFLOW_ID INPUT_NAME DATA [options]DATA is parsed as JSON when it looks like JSON (objects, arrays,
numbers, quoted strings, booleans, null); otherwise it is passed as
a raw string. WORKFLOW_ID accepts a unique prefix.
Options
--json-file PATH- Read the JSON payload from a file instead--name NAME- The Durable instance name (default: Durable)
Examples
# A form response
mix durable.provide_input ab12 equipment_preferences '{"laptop":"mac"}'
# A single choice
mix durable.provide_input ab12 orientation_slot morning
# From a file
mix durable.provide_input ab12 manager_approval --json-file approval.json