Optional
await?: booleanOptional
config?: WorkflowConfigExtended execution options
Optional
expire?: numbersets the number of seconds a workflow may exist after completion. As the process engine is an in-memory cache, the default policy is to expire and scrub the job hash as soon as it completes.
Optional
id?: stringThe function execution id (shorthand for workflowId)
Optional
marker?: StringStringTypeCustom marker data field used for adding a searchable marker to the job. markers always begin with a dash (-). Any field that does not begin with a dash will be removed and will not be inserted with the initial data set.
Optional
namespace?: stringThe app deployment namespace; how it appears in redis (e.g., 'meshflow')
Optional
pending?: numberIf provided, the job will initialize in a pending state, reserving
only the job ID (HSETNX) and persisting search and marker (if provided).
If a resume
signal is sent before the specified number of seconds,
the job will resume as normal. If the job is not resumed within the
number of seconds provided, the job will be scrubbed. No dependencies
are set for a job in a pending state; however, dependencies will be
added after the job is resumed (if necessary).
Optional
persistent?: booleanset to true
by the system when a workflow is started with a ttl, ensuring
that the workflow will remain active until the ttl expires and the workflow
is scrubbed. This is a system flag and should not be set by the user.
Optional
prefix?: stringThe connected function's entity identifier
Optional
search?: WorkflowSearchOptionsSearch fields to seed function state when it first initializes
Optional
signalset to false to optimize workflows that do not require a signal in
.
explicitly set to true to force the workflow to remain open and persistent.
Optional
taskTarget connected functions more specifically by taskQueue
Optional
ttl?: stringSet to 'infinity', '1 minute', '1 hour', etc
Optional
workflowThe function execution id
Optional
workflowThe function name (entity
is a shorthand for this)
Optional
workflowThe open telemetry span context for the workflow, used for logging and tracing. If a sink is enabled, this will be sent to the sink.
Optional
workflowThe open telemetry trace context for the workflow, used for logging and tracing. If a sink is enabled, this will be sent to the sink.
If set to false explicitly it will not await the result