You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
30
36
31
37
## Application patterns
32
38
@@ -141,7 +147,7 @@ You can use the `context` object to invoke other functions by name, pass paramet
141
147
> [!NOTE]
142
148
> The `context` object in Python represents the orchestration context. Access the main Azure Functions context using the `function_context` property on the orchestration context.
143
149
144
-
# [Python (V2)](#tab/python-v2)
150
+
# [Python (PM2)](#tab/python-v2)
145
151
146
152
```python
147
153
import azure.functions as func
@@ -315,7 +321,7 @@ The fan-out work is distributed to multiple instances of the `F2` function. The
315
321
316
322
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.
main = df.Orchestrator.create(orchestrator_function)
564
570
```
565
571
566
-
# [Python (V2)](#tab/python-v2)
572
+
# [Python (PM2)](#tab/python-v2)
567
573
568
574
```python
569
575
import json
@@ -780,7 +786,7 @@ main = df.Orchestrator.create(orchestrator_function)
780
786
781
787
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).
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/quickstart-python-vscode.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,9 @@ In this article, you learn how to use the Visual Studio Code Azure Functions ext
18
18
19
19
:::image type="content" source="./media/quickstart-python-vscode/functions-vs-code-complete.png" alt-text="Screenshot of the running durable function in Azure.":::
20
20
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.
0 commit comments