Skip to content

Commit d9785c0

Browse files
committed
apply feedback
1 parent a008694 commit d9785c0

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

articles/azure-functions/durable/durable-functions-overview.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ Durable Functions is designed to work with all Azure Functions programming langu
2323
| .NET / C# / F# | Functions 1.0+ | In-process (GA) <br/> Out-of-process ([preview](https://github.com/microsoft/durabletask-dotnet#usage-with-azure-functions)) | n/a |
2424
| JavaScript/TypeScript | Functions 2.0+ | Node 8+ | 2.x bundles |
2525
| Python | Functions 2.0+ | Python 3.7+ | 2.x bundles |
26+
| Python (V2 prog. model) | Functions 4.0+ | Python 3.7+ | 3.15+ bundles |
2627
| PowerShell | Functions 3.0+ | PowerShell 7+ | 2.x bundles |
2728
| Java | Functions 4.0+ | Java 8+ | 4.x bundles |
2829

29-
Like Azure Functions, there are templates to help you develop Durable Functions using [Visual Studio 2019](durable-functions-create-first-csharp.md), [Visual Studio Code](quickstart-js-vscode.md), and the [Azure portal](durable-functions-create-portal.md).
30+
> [!NOTE]
31+
> The new programming model for authoring Functions in Python (V2) is currently in preview. Compared to the current model, the new model is designed to have a more idiomatic and intuitive experience. To learn more, see Azure Functions Python [developer guide](/azure/azure-functions/functions-reference-python.md?pivots=python-mode-decorators).
32+
>
33+
> In the following code snippets, Python (PM2) denotes programming model V2, the new model.
34+
35+
Like Azure Functions, there are templates to help you develop Durable Functions using [Visual Studio](durable-functions-create-first-csharp.md), [Visual Studio Code](quickstart-js-vscode.md), and the [Azure portal](durable-functions-create-portal.md).
3036

3137
## Application patterns
3238

@@ -141,7 +147,7 @@ You can use the `context` object to invoke other functions by name, pass paramet
141147
> [!NOTE]
142148
> The `context` object in Python represents the orchestration context. Access the main Azure Functions context using the `function_context` property on the orchestration context.
143149
144-
# [Python (V2)](#tab/python-v2)
150+
# [Python (PM2)](#tab/python-v2)
145151

146152
```python
147153
import azure.functions as func
@@ -315,7 +321,7 @@ The fan-out work is distributed to multiple instances of the `F2` function. The
315321

316322
The automatic checkpointing that happens at the `yield` call on `context.task_all` ensures that a potential midway crash or reboot doesn't require restarting an already completed task.
317323

318-
# [Python (V2)](#tab/python-v2)
324+
# [Python (PM2)](#tab/python-v2)
319325

320326
```python
321327
import azure.functions as func
@@ -563,7 +569,7 @@ def orchestrator_function(context: df.DurableOrchestrationContext):
563569
main = df.Orchestrator.create(orchestrator_function)
564570
```
565571

566-
# [Python (V2)](#tab/python-v2)
572+
# [Python (PM2)](#tab/python-v2)
567573

568574
```python
569575
import json
@@ -780,7 +786,7 @@ main = df.Orchestrator.create(orchestrator_function)
780786

781787
To create the durable timer, call `context.create_timer`. The notification is received by `context.wait_for_external_event`. Then, `context.task_any` is called to decide whether to escalate (timeout happens first) or process the approval (the approval is received before timeout).
782788

783-
# [Python (V2)](#tab/python-v2)
789+
# [Python (PM2)](#tab/python-v2)
784790

785791
```python
786792
import json
@@ -931,7 +937,7 @@ async def main(client):
931937
```
932938

933939

934-
# [Python (V2)](#tab/python-v2)
940+
# [Python (PM2)](#tab/python-v2)
935941

936942
```python
937943
import azure.functions as func
@@ -1073,7 +1079,7 @@ def entity_function(context: df.DurableOrchestrationContext):
10731079
main = df.Entity.create(entity_function)
10741080
```
10751081

1076-
# [Python (V2)](#tab/python-v2)
1082+
# [Python (PM2)](#tab/python-v2)
10771083

10781084
```python
10791085
import azure.functions as func
@@ -1159,7 +1165,7 @@ async def main(req: func.HttpRequest, starter: str) -> func.HttpResponse:
11591165
return func.HttpResponse("Entity signaled")
11601166
```
11611167

1162-
# [Python (V2)](#tab/python-v2)
1168+
# [Python (PM2)](#tab/python-v2)
11631169

11641170
```python
11651171
import azure.functions as func

articles/azure-functions/durable/quickstart-python-vscode.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ In this article, you learn how to use the Visual Studio Code Azure Functions ext
1818

1919
:::image type="content" source="./media/quickstart-python-vscode/functions-vs-code-complete.png" alt-text="Screenshot of the running durable function in Azure.":::
2020

21+
> [!NOTE]
22+
> The new programming model for authoring Functions in Python (V2) is currently in preview. Compared to the current model, the new model is designed to have a more idiomatic and intuitive experience. To learn more, see Azure Functions Python developer guide.
23+
2124
## Prerequisites
2225

2326
To complete this tutorial:

0 commit comments

Comments
 (0)