@@ -20,17 +20,7 @@ pub mod http_extension {
2020 /// Type of HTTP 1.1 Methods
2121 /// RFC 7231: <https://tools.ietf.org/html/rfc7231#page-24>
2222 /// RFC 5789: <https://datatracker.ietf.org/doc/html/rfc5789>
23- #[ derive(
24- Clone ,
25- Copy ,
26- Debug ,
27- PartialEq ,
28- Eq ,
29- Hash ,
30- PartialOrd ,
31- Ord ,
32- :: prost:: Enumeration
33- ) ]
23+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
3424 #[ repr( i32 ) ]
3525 pub enum Verb {
3626 None = 0 ,
@@ -148,10 +138,8 @@ pub struct StateItem {
148138 pub etag : :: core:: option:: Option < Etag > ,
149139 /// The metadata which will be passed to state store component.
150140 #[ prost( map = "string, string" , tag = "4" ) ]
151- pub metadata : :: std:: collections:: HashMap <
152- :: prost:: alloc:: string:: String ,
153- :: prost:: alloc:: string:: String ,
154- > ,
141+ pub metadata :
142+ :: std:: collections:: HashMap < :: prost:: alloc:: string:: String , :: prost:: alloc:: string:: String > ,
155143 /// Options for concurrency and consistency to save the state.
156144 #[ prost( message, optional, tag = "5" ) ]
157145 pub options : :: core:: option:: Option < StateOptions > ,
@@ -174,17 +162,7 @@ pub struct StateOptions {
174162/// Nested message and enum types in `StateOptions`.
175163pub mod state_options {
176164 /// Enum describing the supported concurrency for state.
177- #[ derive(
178- Clone ,
179- Copy ,
180- Debug ,
181- PartialEq ,
182- Eq ,
183- Hash ,
184- PartialOrd ,
185- Ord ,
186- :: prost:: Enumeration
187- ) ]
165+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
188166 #[ repr( i32 ) ]
189167 pub enum StateConcurrency {
190168 ConcurrencyUnspecified = 0 ,
@@ -214,17 +192,7 @@ pub mod state_options {
214192 }
215193 }
216194 /// Enum describing the supported consistency for state.
217- #[ derive(
218- Clone ,
219- Copy ,
220- Debug ,
221- PartialEq ,
222- Eq ,
223- Hash ,
224- PartialOrd ,
225- Ord ,
226- :: prost:: Enumeration
227- ) ]
195+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
228196 #[ repr( i32 ) ]
229197 pub enum StateConsistency {
230198 ConsistencyUnspecified = 0 ,
@@ -265,8 +233,38 @@ pub struct ConfigurationItem {
265233 pub version : :: prost:: alloc:: string:: String ,
266234 /// the metadata which will be passed to/from configuration store component.
267235 #[ prost( map = "string, string" , tag = "3" ) ]
268- pub metadata : :: std:: collections:: HashMap <
269- :: prost:: alloc:: string:: String ,
270- :: prost:: alloc:: string:: String ,
271- > ,
236+ pub metadata :
237+ :: std:: collections:: HashMap < :: prost:: alloc:: string:: String , :: prost:: alloc:: string:: String > ,
238+ }
239+ /// JobFailurePolicy defines the policy to apply when a job fails to trigger.
240+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
241+ pub struct JobFailurePolicy {
242+ /// policy is the policy to apply when a job fails to trigger.
243+ #[ prost( oneof = "job_failure_policy::Policy" , tags = "1, 2" ) ]
244+ pub policy : :: core:: option:: Option < job_failure_policy:: Policy > ,
245+ }
246+ /// Nested message and enum types in `JobFailurePolicy`.
247+ pub mod job_failure_policy {
248+ /// policy is the policy to apply when a job fails to trigger.
249+ #[ derive( Clone , Copy , PartialEq , :: prost:: Oneof ) ]
250+ pub enum Policy {
251+ #[ prost( message, tag = "1" ) ]
252+ Drop ( super :: JobFailurePolicyDrop ) ,
253+ #[ prost( message, tag = "2" ) ]
254+ Constant ( super :: JobFailurePolicyConstant ) ,
255+ }
256+ }
257+ /// JobFailurePolicyDrop is a policy which drops the job tick when the job fails to trigger.
258+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
259+ pub struct JobFailurePolicyDrop { }
260+ /// JobFailurePolicyConstant is a policy which retries the job at a consistent interval when the job fails to trigger.
261+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
262+ pub struct JobFailurePolicyConstant {
263+ /// interval is the constant delay to wait before retrying the job.
264+ #[ prost( message, optional, tag = "1" ) ]
265+ pub interval : :: core:: option:: Option < :: prost_types:: Duration > ,
266+ /// max_retries is the optional maximum number of retries to attempt before giving up.
267+ /// If unset, the Job will be retried indefinitely.
268+ #[ prost( uint32, optional, tag = "2" ) ]
269+ pub max_retries : :: core:: option:: Option < u32 > ,
272270}
0 commit comments