-
Notifications
You must be signed in to change notification settings - Fork 20
Add support for new event types #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for new event types generated by the Azure Functions runtime, specifically handling the translation of SendEntityMessageActions to the older orchestration event protocol by the Durable WebJobs extension.
Key Changes:
- Added support for
orchestratorCompletedandeventSentevent types - Refactored
eventRaisedevent handling to distinguish between entity-related events and regular external events - Introduced
_entity_lock_task_id_mapto track entity lock request task IDs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
durabletask/worker.py
Outdated
| decoded_result = shared.from_json(event.eventRaised.input.value) | ||
| event_list.append(decoded_result) | ||
| # TODO: Investigate why the event result is wrapped in a dict with "result" key | ||
| result = shared.from_json(event.eventRaised.input.value)["result"] |
Copilot
AI
Dec 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable result is not used.
| result = shared.from_json(event.eventRaised.input.value)["result"] | |
| pass # result is not used in this block |
Adds support for the new event types generated by the Azure Functions runtime.
Mostly deals with the results of the WebJobs extension translating the SendEntityMessageActions to the older orchestration event protocol
Requires #80 merged first