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.
@andystaples andystaples marked this pull request as ready for review December 11, 2025 17:40
Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a test that uses the new event types

@andystaples
Copy link
Contributor Author

How about a test that uses the new event types

Added

@andystaples andystaples merged commit 3eaf42c into main Dec 12, 2025
20 checks passed
@andystaples andystaples deleted the andystaples/add-support-for-new-event-types branch December 12, 2025 19:15
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.

3 participants