Skip to content

fix: resolving duplicate event subscriptions#129

Merged
Frnd-me merged 1 commit into
CollaborativeStateMachines:developfrom
AryanP281:develop
Apr 15, 2026
Merged

fix: resolving duplicate event subscriptions#129
Frnd-me merged 1 commit into
CollaborativeStateMachines:developfrom
AryanP281:develop

Conversation

@AryanP281
Copy link
Copy Markdown
Contributor

Pull Request

Description

The subscribers for events from each source (instance) were being created based on a list of instances' subscriptions. This lead to duplicate subscriptions (n, where n = number of scheduled instances in the runtime) and thereby delivery of duplicate events to state machines. Converted the list to a set to eliminate duplicate subscribers.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this been tested?

Using existing unit and integration tests. Also added a new test to check that duplicate event delivery is prevented.

All tests pass.

Event subscribers were created from a list of instance subscriptions,
which caused duplicate subscriptions per scheduled instance in the runtime.
This led to duplicate event delivery to state machines.
Use a set instead of a list to eliminate duplicate subscribers.
@Frnd-me Frnd-me changed the title fix: prevent duplicate event subscriptions fix: resolving duplicate event subscriptions Apr 15, 2026
@Frnd-me Frnd-me merged commit 68cdb8d into CollaborativeStateMachines:develop Apr 15, 2026
1 check passed
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