Comments (14)
@aminekaabachi The Durable Entities PR already exists and has been ready for some time now here: #184
We're just waiting for an azure functions python worker release to take place for that to get merged and shipped asap. That worker contains some lower-level changes necessary for the Entities PR to actually run. Unfortunately, for stability reasons, that worker release schedule is currently much slower than ours.
The good news is that the worker is already in the process of releasing and I understand that it should be available in a matter of weeks now. Sorry this has taken so long, I also can't wait to finally merge this and get it out the door!
I'll continue updating this post with updates! Thank you for your interest and your patience ⚡ ⚡
from azure-functions-durable-python.
Nice work, I am used to having durable entities available in C# by now and I'm just adding my voice here without a real use case other than "I really want to play around and see what I can do with them in Python🚀"! Glad to hear it's coming soon!
from azure-functions-durable-python.
Released!
from azure-functions-durable-python.
@asipras , oh I have some good news for y'all then 😄
Indeed, Durable Entities for Python are coming and they appear to be working on my local branch. I'm actually expecting to open a PR for those today, although I still need to incorporate a few unit tests for them. Regardless, I believe you can expect them becoming available in the very near future! ⚡ ⚡
from azure-functions-durable-python.
I think that the counter_entity
sample will help you getting started with durable entities:
https://github.com/Azure/azure-functions-durable-python/tree/dev/samples/counter_entity
from azure-functions-durable-python.
I'm hoping to use durable entities for a simple heartbeat monitor of IoT devices - heartbeat messages would get routed to a service bus queue, which triggers the durable function to save the device info and heartbeat timestamp and check against the age of the last heartbeat received.
from azure-functions-durable-python.
I built something now that uses events in a orchestrator but that should be using a entity to understand where it is and what's happening, that would also allow more complex patterns, with the entity being updated, running some activities at different points for different states etc.
from azure-functions-durable-python.
We use durable entities simply to count the number of activities called during the durable function execution. This is preventing us from migrating the .net c# durable function to python durable function.
from azure-functions-durable-python.
Any news or ways we can contribute to make this possible?
from azure-functions-durable-python.
Thanks for the suggestion @martijnlentink!
Hi @gromag, if you update your extension bundles to be in the V2 range, as in here: https://github.com/Azure/azure-functions-durable-python/blob/dev/samples/fan_in_fan_out/host.json
then you should be able to see the entity templates in VSCode, assuming you have the latest update of core-tools.
Also, we have documentation pages for entities on the way! They're just not public yet, but I'm happy to help with any issues you have if you open a new ticket :) . Thanks!
from azure-functions-durable-python.
Hi @gromag, glad to hear you were finally able to see them. Strange that they were not under "verified" though.
I'll ask around to see if others encounter this problem as well. If you encounter any more issues with entities, feel free to raise them in a new ticket and I'll address them asap!
from azure-functions-durable-python.
Great! The work to add entities to Python is well underway! @davidmrdavid
from azure-functions-durable-python.
I'm using VSCode attached to a local container image (mcr.microsoft.com/azure-functions/python:3.0-python3.8-core-tools) In there I have installed azure-functions-core-tools-3 (3.0.3233-1) and in the IDE I have the extension ms-azuretools.vscode-azurefunctions v1.1.0.
When I try to create a new Durable Function it lists only Activity, Orchestrator and Starter type of functions.
I understand the azure-functions-core-tools-3 is responsible for providing the list of available durable functions in the VSCode menu and Iassume that this has not been updated yet to include the Durable Entities.
Using intellisense I can see the DurableEntityContext and other related classes, is there any documentation to guide on the use of Python entity functions?
Thanks
from azure-functions-durable-python.
Thank you @davidmrdavid, although I had the latest extension bundle and core-tools it did not show in the list until I changed the Azure Function template filter from "Verified" to "All", It is in the menu now! 😅
from azure-functions-durable-python.
Related Issues (20)
- Unit/integration testing durable functions HOT 7
- starter string in V2 model HOT 9
- Is rewind supported or not? HOT 3
- Support instanceIdPrefix for DurableOrchestrationClient.get_status_by
- binding <name> has invalid non-type annotation list[str] HOT 2
- Question: How to pass data between Azure http_trigger to FastAPI endpoint
- purge_instance_history_by raises exception when optional created_time_from is not passed
- Object of type async_generator is not JSON serializable when calling sub-orchestrator HOT 2
- The durable function is stuck in the “running” state forever HOT 5
- DurableOrchestrationContext call_http does not work with string input HOT 1
- Nothing changed, pinned versions, functions still broke at some point in time HOT 4
- Package is accidentally shipping its tests
- AttributeError: 'dict' object has no attrbute 'state' when running Orchestrator function HOT 6
- `call_http` json serializes regular `str` content. HOT 5
- azure_functions_worker logging shows wrong programming model HOT 1
- Durable Function Error when accessing Blob Storage behind Private Endpoint HOT 2
- Events added to in-memory queue are not being removed after wait_for_external_event consumes it HOT 4
- Routing/URL matching precedence is ignored
- How to properly pass input arguments to a sub-orchestration function?
- Known regression: Activity input fails to deserialize when the input is an array
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-durable-python.