You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert ResourceExhausted errors from versioning API's to Internal ones with nice error message (#7815)
## What changed?
- WISOTT
## Why?
- Better user experience
## How did you test it?
- [x] built
- [x] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [x] added new functional test(s)
## Potential risks
- None
// Tail room for context deadline to bail out from retry for long poll.
90
-
longPollTailRoom=time.Second
91
-
90
+
longPollTailRoom=time.Second
92
91
errWaitForRefresh=serviceerror.NewDeadlineExceeded("waiting for schedule to refresh status of completed workflows")
93
92
)
94
93
94
+
const (
95
+
errTooManySetCurrentVersionRequests="Too many SetWorkerDeploymentCurrentVersion requests have been issued in rapid succession. Please throttle the request rate to avoid exceeding Worker Deployment resource limits."
96
+
errTooManySetRampingVersionRequests="Too many SetWorkerDeploymentRampingVersion requests have been issued in rapid succession. Please throttle the request rate to avoid exceeding Worker Deployment resource limits."
97
+
errTooManyDeleteDeploymentRequests="Too many DeleteWorkerDeployment requests have been issued in rapid succession. Please throttle the request rate to avoid exceeding Worker Deployment resource limits."
98
+
errTooManyDeleteVersionRequests="Too many DeleteWorkerDeploymentVersion requests have been issued in rapid succession. Please throttle the request rate to avoid exceeding Worker Deployment resource limits."
99
+
errTooManyVersionMetadataRequests="Too many UpdateWorkerDeploymentVersionMetadata requests have been issued in rapid succession. Please throttle the request rate to avoid exceeding Worker Deployment resource limits."
100
+
)
101
+
95
102
type (
96
103
// WorkflowHandler - gRPC handler interface for workflowservice
// isFailedPrecondition checks if the error is a FailedPrecondition error. It also checks if the FailedPrecondition error is wrapped in an ApplicationError.
// isFailedPrecondition checks if the error is a FailedPrecondition error. It also checks if the FailedPrecondition error is wrapped in an ApplicationError.
d.logger.Error("Update canceled before deployment workflow started")
434
-
// TODO (Carly): This is likely due to too many deployments, but make sure we excluded other possible errors here and send a proper error message all the time.
435
-
// TODO (Carly): mention the limit in here or make sure matching does in the error returned to the poller
436
-
returntemporal.NewApplicationError("failed to create deployment version, likely you are exceeding the limit of allowed deployments in a namespace", errTooManyDeployments)
0 commit comments