Skip to content

Commit 9643578

Browse files
Fixes missing line in mechanical markdown
Signed-off-by: Elena Kolevska <[email protected]>
1 parent d5518da commit 9643578

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

examples/demo_workflow/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ expected_stdout_lines:
4949
- "== APP == Get response from hello_world_wf after resume call: Running"
5050
- "== APP == New counter value is: 111!"
5151
- "== APP == New counter value is: 1111!"
52+
- "== APP == Instance Successfully Purged"
5253
- "== APP == Get response from hello_world_wf after terminate call: Terminated"
5354
- "== APP == Get response from child_wf after terminate call: Terminated"
5455
- "== APP == Instance Successfully Purged"

examples/demo_workflow/app.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@ def child_wf(ctx: DaprWorkflowContext):
6868
def 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

7474
def 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

8484
def 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):
9797
def 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

Comments
 (0)