Class: WorkflowExecutionAlreadyStartedError
common.WorkflowExecutionAlreadyStartedError
This exception is thrown in the following cases:
- Workflow with the same Workflow Id is currently running
- There is a closed Workflow with the same Workflow Id and the WorkflowOptions.workflowIdReusePolicy
is
WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE
- There is closed Workflow in the
Completed
state with the same Workflow Id and the WorkflowOptions.workflowIdReusePolicy isWORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY
Hierarchy
-
↳
WorkflowExecutionAlreadyStartedError
Constructors
constructor
• new WorkflowExecutionAlreadyStartedError(message
, workflowId
, workflowType
): WorkflowExecutionAlreadyStartedError
Parameters
Name | Type |
---|---|
message | string |
workflowId | string |
workflowType | string |
Returns
WorkflowExecutionAlreadyStartedError
Overrides
Properties
cause
• Optional
Readonly
cause: Error
Inherited from
failure
• Optional
failure: IFailure
The original failure that constructed this error.
Only present if this error was generated from an external operation.
Inherited from
message
• message: string
Inherited from
name
• name: string
Inherited from
stack
• Optional
stack: string
Inherited from
workflowId
• Readonly
workflowId: string
workflowType
• Readonly
workflowType: string
prepareStackTrace
▪ Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Type declaration
▸ (err
, stackTraces
): any
Optional override for formatting stack traces
Parameters
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
TemporalFailure.prepareStackTrace
stackTraceLimit
▪ Static
stackTraceLimit: number
Inherited from
TemporalFailure.stackTraceLimit
Methods
captureStackTrace
▸ captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void