Skip to content

Conversation

@andystaples
Copy link
Contributor

@andystaples andystaples commented Dec 5, 2025

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

Copy link
Contributor

Copilot AI left a 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 orchestratorCompleted and eventSent event types
  • Refactored eventRaised event handling to distinguish between entity-related events and regular external events
  • Introduced _entity_lock_task_id_map to track entity lock request task IDs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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"]
Copy link

Copilot AI Dec 5, 2025

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.

Suggested change
result = shared.from_json(event.eventRaised.input.value)["result"]
pass # result is not used in this block

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants