Skip to content

Commit e5063a1

Browse files
authored
surface more information in ContinueAsNewError (#1218)
* surface workflow func in ContinueAsNewError * remove WorkflowFunc() * surface other workflow options * revert other surfaced properties
1 parent ff5d4b0 commit e5063a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/error.go

+5
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ func (e *ContinueAsNewError) Error() string {
350350
return "ContinueAsNew"
351351
}
352352

353+
// WorkflowIDReusePolicy return workflow id reuse policy in the new run
354+
func (e *ContinueAsNewError) WorkflowIDReusePolicy() WorkflowIDReusePolicy {
355+
return e.params.workflowIDReusePolicy
356+
}
357+
353358
// WorkflowType return workflowType of the new run
354359
func (e *ContinueAsNewError) WorkflowType() *WorkflowType {
355360
return e.params.workflowType

0 commit comments

Comments
 (0)