Optionalawait?: booleandefault is true; if false, will not await the execution
Optionalconfig?: WorkflowConfigthe workflow configuration object
Optionalentity?: stringif invoking a workflow, passing 'entity' will apply the value as the workflowName, taskQueue, and prefix, ensuring the FT.SEARCH index is properly scoped. This is a convenience method but limits options.
Optionalexpire?: numbersets the number of seconds a workflow may exist after completion. The default policy is to expire the job hash as soon as it completes.
Optionalguid?: stringProvide to set the engine name. This MUST be unique, so do not provide unless it is guaranteed to be a unique engine/worker guid when identifying the point of presence within the mesh.
Optionalmarker?: StringStringTypemarker data (begins with a -)
Optionalnamespace?: stringthe namespace for the workflow
Optionaloriginthe entry point workflow id
Optionalparentthe parent workflow id; adjacent ancestor ID
Optionalpending?: 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, transitioning to the adjacent children
of the trigger. If the job is not resumed within the number
of seconds specified, the job will be scrubbed. No dependencies
are added for a job in a pending state; however, dependencies
will be added after the job is resumed if relevant.
Optionalpersistent?: booleansystem flag to indicate that the flow should remain open beyond main method completion while still emitting the 'job done' event
Optionalsearch?: WorkflowSearchOptionsthe full-text-search
Optionalsignaldefault is true; set to false to optimize workflows that do not require a signal in
Optionaltaskthe task queue for the workflow; optional if entity is provided
Optionalworkflowthe job id
Optionalworkflowthe name of the user's workflow function; optional if 'entity' is provided
OptionalworkflowOpenTelemetry span context for the workflow
OptionalworkflowOpenTelemetry trace context for the workflow
input arguments to pass in