Skip to content

Commit 4f6c070

Browse files
committed
Fix Python sample for new orchestration version
1 parent b055185 commit 4f6c070

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

articles/azure-functions/durable/durable-functions-orchestration-versioning.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,9 @@ const HttpStart: HttpHandler = async (request: HttpRequest, context: InvocationC
647647

648648
# [Python](#tab/python)
649649
```python
650+
@myApp.route(route="orchestrators/{functionName}")
651+
@myApp.durable_client_input(client_name="client")
650652
async def http_start(req: func.HttpRequest, client):
651-
client = df.DurableOrchestrationClient(starter)
652653
instance_id = await client.start_new("ProcessOrderOrchestrator", client_input=order_id, version="1.0")
653654

654655
# ...

0 commit comments

Comments
 (0)