The trigger method starts a new workflow run and returns its workflowRunId.
You can also trigger multiple workflow runs in a single call by passing an array of arguments instead of a single object.
Arguments#
The public URL of the workflow endpoint.
A custom identifier for the workflow run. Each run must use a unique ID.
The final ID will be prefixed with wfr_.
For example: passing my-workflow results in wfr_my-workflow.
If omitted, a run ID will be generated automatically.
The request payload to pass into the workflow run.
Accessible as context.requestPayload inside the workflow.
HTTP headers to pass into the workflow run.
Accessible as context.headers inside the workflow.
Number of retry attempts for workflow steps. Default is 3.
Delay between retries. Can use expressions like "1000 * (1 + retried)".
An optional flow control configuration to limit concurrency and execution rate of the workflow runs.
See Flow Control for details.
Show propertiesHide properties
A logical grouping key that identifies which requests share the same flow control limits.
The maximum number of allowed requests per second.
The maximum number of concurrent requests allowed.
The time window used to enforce the defined rate limit. Default is 1s.
Delay for the workflow run. This is used to delay the execution of the workflow run. The delay is in seconds or can be passed as a string with a time unit (e.g. "1h", "30m", "15s").
Optionally set the absolute delay of this message. This will override the delay option. The message will not delivered until the specified time.
Unix timestamp in seconds.
If set to true, telemetry data collection for this workflow run will be disabled. By default, telemetry is enabled to help improve Upstash services.
See the disableTelemetry parameter in serve options for more details.