Skip to content

Commit e592351

Browse files
committed
Fix comments
1 parent 5144d59 commit e592351

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

samples-v2/orchestration_versioning/function_app.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,16 @@ def my_orchestrator(context: df.DurableOrchestrationContext):
2222
# New code path
2323
activity_result = yield context.call_activity('say_hello', f"v{context.version}")
2424

25-
"""
26-
While the orchestration is waiting for the external event,
27-
stop the app, update the defaultVersion in host.json to "2.0",
28-
then restart the app and send a "Continue" event.
29-
This orchestration instance should continue with the old version.
30-
"""
25+
# While the orchestration is waiting for the external event,
26+
# stop the app, update the defaultVersion in host.json to "2.0",
27+
# then restart the app and send a "Continue" event.
28+
# This orchestration instance should continue with the old version.
3129
context.set_custom_status("Waiting for Continue event...")
3230
yield context.wait_for_external_event("Continue")
3331
context.set_custom_status("Continue event received")
3432

35-
"""
36-
New orchestration instances (including sub-orchestrations)
37-
will use the current defaultVersion specified in host.json.
38-
"""
33+
# New orchestration instances (including sub-orchestrations)
34+
# will use the current defaultVersion specified in host.json.
3935
sub_result = yield context.call_sub_orchestrator('my_sub_orchestrator')
4036
return [f'Orchestration version: {context.version}', f'Suborchestration version: {sub_result}', activity_result]
4137

0 commit comments

Comments
 (0)