-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dapr#8222 from JoshVanL/scheduler-api-failure-policy
Scheduler: Expose FailurePolicy on internal API
- Loading branch information
Showing
13 changed files
with
1,371 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
syntax = "proto3"; | ||
|
||
package dapr.proto.scheduler.v1; | ||
|
||
import "google/protobuf/duration.proto"; | ||
|
||
option go_package = "github.com/dapr/dapr/pkg/proto/scheduler/v1;scheduler"; | ||
|
||
// FailurePolicy defines the policy to apply when a job fails to trigger. | ||
message FailurePolicy { | ||
// policy is the policy to apply when a job fails to trigger. | ||
oneof policy { | ||
FailurePolicyDrop drop = 1; | ||
FailurePolicyConstant constant = 2; | ||
} | ||
} | ||
|
||
// FailurePolicyDrop is a policy which drops the job tick when the job fails to | ||
// trigger. | ||
message FailurePolicyDrop {} | ||
|
||
// FailurePolicyConstant is a policy which retries the job at a consistent | ||
// interval when the job fails to trigger. | ||
message FailurePolicyConstant { | ||
// interval is the constant delay to wait before retrying the job. | ||
google.protobuf.Duration interval = 1; | ||
|
||
// max_retries is the optional maximum number of retries to attempt before | ||
// giving up. | ||
// If unset, the Job will be retried indefinitely. | ||
optional uint32 max_retries = 2; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.