Skip to content

Commit

Permalink
Add failed cause for signal count limit (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt committed Mar 24, 2023
1 parent 44e4397 commit 1e717d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ buf-lint:
(cd $(PROTO_ROOT) && buf lint)

buf-breaking:
@printf $(COLOR) "Run buf breaking changes check against master branch..."
@(cd $(PROTO_ROOT) && buf breaking --against '.git#branch=master')
printf $(COLOR) "Skipped buf-breaking check for release branch"
# @printf $(COLOR) "Run buf breaking changes check against master branch..."
# @(cd $(PROTO_ROOT) && buf breaking --against '.git#branch=master')

##### Clean #####
clean:
Expand Down
2 changes: 2 additions & 0 deletions temporal/api/enums/v1/failed_cause.proto
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ enum SignalExternalWorkflowExecutionFailedCause {
SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0;
SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = 1;
SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2;
// Signal count limit is per workflow and controlled by server dynamic config "history.maximumSignalsPerExecution"
SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED = 3;
}

enum ResourceExhaustedCause {
Expand Down

0 comments on commit 1e717d4

Please sign in to comment.