Skip to content

Commit 58779ce

Browse files
authored
Update Samples (#230)
1 parent 46a0505 commit 58779ce

File tree

109 files changed

+784
-1617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+784
-1617
lines changed

README.md

Lines changed: 7 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,68 +5,26 @@
55

66
# Durable Functions for Python
77

8-
The `azure-functions-durable` [pip](https://pypi.org/project/azure-functions-durable/) package allows you to write [Durable Functions](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview) for [Python](https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python). Durable Functions is an extension of [Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-overview) that lets you write stateful functions and workflows in a serverless environment. The extension manages state, checkpoints, and restarts for you. Durable Functions' advantages include:
8+
[Durable Functions](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview) is an extension of [Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-overview) that lets you write stateful functions in a serverless compute environment. The extension lets you define stateful workflows by writing orchestrator functions and stateful entities by writing entity functions using the Azure Functions programming model. Behind the scenes, the extension manages state, checkpoints, and restarts for you, allowing you to focus on your business logic.
9+
10+
🐍 Find us on PyPi [here](https://pypi.org/project/azure-functions-durable/) 🐍
911

10-
* Define workflows in code. No JSON schemas or designers are needed.
11-
* Call other functions synchronously and asynchronously. Output from called functions can be saved to local variables.
12-
* Automatically checkpoint progress whenever the function schedules async work. Local state is never lost if the process recycles or the VM reboots.
1312

1413
You can find more information at the following links:
1514

1615
* [Azure Functions overview](https://docs.microsoft.com/en-us/azure/azure-functions/functions-overview)
1716
* [Azure Functions Python developers guide](https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python)
1817
* [Durable Functions overview](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=python)
18+
* [Core concepts and features overview](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-types-features-overview).
1919

20-
A durable function, or _orchestration_, is a solution made up of different types of Azure Functions:
21-
22-
* **Activity:** the functions and tasks being orchestrated by your workflow.
23-
* **Orchestrator:** a function that describes the way and order actions are executed in code.
24-
* **Client:** the entry point for creating an instance of a durable orchestration.
25-
26-
Durable Functions' function types and features are documented in-depth [here.](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-types-features-overview)
27-
28-
## Current limitations
29-
30-
Python support for Durable Functions is currently in public preview. The following are the current known limitations.
31-
32-
### Functionality
33-
34-
* Sub-orchestrations are not yet supported (planned [#62](https://github.com/Azure/azure-functions-durable-python/issues/62))
35-
* Durable Entities are not yet supported (not yet planned [#96](https://github.com/Azure/azure-functions-durable-python/issues/96))
36-
37-
### Tooling
38-
39-
* Python Durable Functions requires [Azure Functions Core Tools](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local) version 3.0.2630 or higher.
20+
> Durable Functions expects certain programming constraints to be followed. Please read the documentation linked above for more information.
4021
4122
## Getting Started
4223

4324
Follow these instructions to get started with Durable Functions in Python:
4425

4526
**🚀 [Python Durable Functions quickstart](https://docs.microsoft.com/azure/azure-functions/durable/quickstart-python-vscode)**
4627

47-
## Samples
48-
49-
Take a look at this project's [samples directory](./samples/):
50-
51-
* [Function Chaining](./samples/function_chaining)
52-
* [Fan-out/Fan-in - Simple](./samples/fan_out_fan_in)
53-
* [Fan-out/Fan-in - TensorFlow](./samples/fan_out_fan_in_tensorflow)
54-
* [External Events - Human Interaction & Timeouts](./samples/external_events)
55-
56-
### Orchestrator example
57-
58-
```python
59-
import azure.durable_functions as df
60-
61-
62-
def orchestrator_function(context: df.DurableOrchestrationContext):
63-
task1 = yield context.call_activity("DurableActivity", "One")
64-
task2 = yield context.call_activity("DurableActivity", "Two")
65-
task3 = yield context.call_activity("DurableActivity", "Three")
66-
67-
outputs = [task1, task2, task3]
68-
return outputs
69-
28+
## Tooling
7029

71-
main = df.Orchestrator.create(orchestrator_function)
72-
```
30+
* Python Durable Functions requires [Azure Functions Core Tools](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local) version 3.0.2630 or higher.

samples/aml_monitoring/.vscode/extensions.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

samples/external_events/DurableOrchestration/__init__.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

samples/external_events/DurableTrigger/__init__.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

samples/external_events/README.md

Lines changed: 0 additions & 149 deletions
This file was deleted.

samples/external_events/RaiseEvent/__init__.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)