Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExecuteWorkflow API document with return errors #1856

Open
yux0 opened this issue Mar 3, 2025 · 0 comments · May be fixed by #1866
Open

ExecuteWorkflow API document with return errors #1856

yux0 opened this issue Mar 3, 2025 · 0 comments · May be fixed by #1866
Labels
bug Something isn't working

Comments

@yux0
Copy link
Contributor

yux0 commented Mar 3, 2025

Expected Behavior

WorkflowExecutionErrorWhenAlreadyStarted can be returned from ExecuteWorkflow if WorkflowExecutionErrorWhenAlreadyStarted option is set.

Actual Behavior

WorkflowExecutionErrorWhenAlreadyStarted error does not mentioned in the API document.

// ExecuteWorkflow starts a workflow execution and returns a WorkflowRun instance or error
		//
		// This can be used to start a workflow using a function reference or workflow type name.
		// Either by
		//     ExecuteWorkflow(ctx, options, "workflowTypeName", arg1, arg2, arg3)
		//     or
		//     ExecuteWorkflow(ctx, options, workflowExecuteFn, arg1, arg2, arg3)
		// The errors it can return:
		//  - serviceerror.NamespaceNotFound, if namespace does not exist
		//  - serviceerror.InvalidArgument
		//  - serviceerror.Internal
		//  - serviceerror.Unavailable

Specifications

  • Version:
  • Platform:
@yux0 yux0 added the bug Something isn't working label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant