@@ -49,7 +49,7 @@ use temporal_sdk_core_protos::{
49
49
coresdk:: { workflow_commands:: QueryResult , IntoPayloadsExt } ,
50
50
grpc:: health:: v1:: health_client:: HealthClient ,
51
51
temporal:: api:: {
52
- common:: v1:: { Header , Payload , Payloads , WorkflowExecution , WorkflowType } ,
52
+ common:: v1:: { Header , Payload , Payloads , RetryPolicy , WorkflowExecution , WorkflowType } ,
53
53
enums:: v1:: { TaskQueueKind , WorkflowIdReusePolicy } ,
54
54
failure:: v1:: Failure ,
55
55
operatorservice:: v1:: operator_service_client:: OperatorServiceClient ,
@@ -986,6 +986,9 @@ pub struct WorkflowOptions {
986
986
/// Optionally enable Eager Workflow Start, a latency optimization using local workers
987
987
/// NOTE: Experimental and incompatible with versioning with BuildIDs
988
988
pub enable_eager_workflow_start : bool ,
989
+
990
+ /// Optionally set a retry policy for the workflow
991
+ pub retry_policy : Option < RetryPolicy > ,
989
992
}
990
993
991
994
#[ async_trait:: async_trait]
@@ -1023,6 +1026,7 @@ impl WorkflowClientTrait for Client {
1023
1026
search_attributes : options. search_attributes . map ( |d| d. into ( ) ) ,
1024
1027
cron_schedule : options. cron_schedule . unwrap_or_default ( ) ,
1025
1028
request_eager_execution : options. enable_eager_workflow_start ,
1029
+ retry_policy : options. retry_policy ,
1026
1030
..Default :: default ( )
1027
1031
} ,
1028
1032
)
0 commit comments