@@ -68,24 +68,24 @@ def child_wf(ctx: DaprWorkflowContext):
6868def hello_act (ctx : WorkflowActivityContext , wf_input ):
6969 global counter
7070 counter += wf_input
71- print (f'New counter value is: { counter } !' , flush = True )
71+ print (f'New counter value is: { counter } !' )
7272
7373
7474def hello_retryable_act (ctx : WorkflowActivityContext ):
7575 global retry_count
7676 if (retry_count % 2 ) == 0 :
77- print (f'Retry count value is: { retry_count } !' , flush = True )
77+ print (f'Retry count value is: { retry_count } !' )
7878 retry_count += 1
7979 raise ValueError ('Retryable Error' )
80- print (f'Retry count value is: { retry_count } ! This print statement verifies retry' , flush = True )
80+ print (f'Retry count value is: { retry_count } ! This print statement verifies retry' )
8181 retry_count += 1
8282
8383
8484def child_retryable_wf (ctx : DaprWorkflowContext ):
8585 global child_orchestrator_string , child_orchestrator_count
8686 if not ctx .is_replaying :
8787 child_orchestrator_count += 1
88- print (f'Appending { child_orchestrator_count } to child_orchestrator_string!' , flush = True )
88+ print (f'Appending { child_orchestrator_count } to child_orchestrator_string!' )
8989 child_orchestrator_string += str (child_orchestrator_count )
9090 yield ctx .call_activity (
9191 act_for_child_wf , input = child_orchestrator_count , retry_policy = retry_policy
@@ -97,7 +97,7 @@ def child_retryable_wf(ctx: DaprWorkflowContext):
9797def act_for_child_wf (ctx : WorkflowActivityContext , inp ):
9898 global child_orchestrator_string , child_act_retry_count
9999 inp_char = chr (96 + inp )
100- print (f'Appending { inp_char } to child_orchestrator_string!' , flush = True )
100+ print (f'Appending { inp_char } to child_orchestrator_string!' )
101101 child_orchestrator_string += inp_char
102102 if child_act_retry_count % 2 == 0 :
103103 child_act_retry_count += 1
@@ -165,6 +165,7 @@ def main():
165165 sleep (5 )
166166 # Purge Test
167167 d .purge_workflow (instance_id = instance_id , workflow_component = workflow_component )
168+ sleep (5 )
168169 try :
169170 d .get_workflow (instance_id = instance_id , workflow_component = workflow_component )
170171 except DaprInternalError as err :
0 commit comments