-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug] ServiceError: Failed to signalWithStart Workflow #4764
Comments
This is due to a change made in server 1.21, where if a workflow execution is trying to complete, the server rejects signals for that execution. This error should not use a non retryable FAILED_PRECONDITION code. I'm transferring this issue to the server repo as it is a server issue. |
Short term fix here: #4765 |
This error happen when signals coming to a workflow is faster than the workflow could handle and the workflow already expressed intention to close itself. Keep accepting new signals will prevent the workflow from closing and could lead to more serious system stability issue. The mitigation is to return a retryable error (ResourceExhaustedError with cause set to WorkflowBusy) so SDK could backoff a little bit given the workflow a chance to close itself. Hopefully by the time of retry, the workflow already closed and SignalWithStart would start a new run. |
The short term fix is included in 1.21.5 and 1.22 as well. |
We started to see a number of
ServiceError: Failed to signalWithStart Workflow
errors recently. The error messageError: 9 FAILED_PRECONDITION: workflow operation rejected because workflow is closing
seems to be related.It started around August 2nd. We are using Temporal Cloud. I do not immediately see any change on our end that could cause the issues. Even if there was some change, I would expect that
signalWithStart
should not error like this.Any ideas?
The text was updated successfully, but these errors were encountered: