Giter VIP home page Giter VIP logo

Comments (14)

davidmrdavid avatar davidmrdavid commented on June 21, 2024 5

@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.

JosXa avatar JosXa commented on June 21, 2024 4

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.

davidmrdavid avatar davidmrdavid commented on June 21, 2024 4

Released!

from azure-functions-durable-python.

davidmrdavid avatar davidmrdavid commented on June 21, 2024 2

@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.

martijnlentink avatar martijnlentink commented on June 21, 2024 2

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.

exit-code0 avatar exit-code0 commented on June 21, 2024 1

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.

eavanvalkenburg avatar eavanvalkenburg commented on June 21, 2024 1

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.

asipras avatar asipras commented on June 21, 2024 1

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.

aminekaabachi avatar aminekaabachi commented on June 21, 2024 1

Any news or ways we can contribute to make this possible?

from azure-functions-durable-python.

davidmrdavid avatar davidmrdavid commented on June 21, 2024 1

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.

davidmrdavid avatar davidmrdavid commented on June 21, 2024 1

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.

anthonychu avatar anthonychu commented on June 21, 2024

Great! The work to add entities to Python is well underway! @davidmrdavid

from azure-functions-durable-python.

gromag avatar gromag commented on June 21, 2024

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.

gromag avatar gromag commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.