Skip to content

Conversation

tuannguyensn2001
Copy link
Contributor

Problem

Issue
The system database was using a single shared notificationsMap to handle both workflow notifications (_DBOS_NOTIFICATIONS_CHANNEL) and workflow events (_DBOS_WORKFLOW_EVENTS_CHANNEL). This design could lead to potential conflicts when both channels used the same payload format (workflowID::topic), causing notifications intended for one channel to incorrectly trigger listeners on the other channel.

Solution

Split the single notificationsMap into two separate maps:
workflowNotificationsMap - dedicated to handling workflow notifications
workflowEventsMap - dedicated to handling workflow events

@tuannguyensn2001 tuannguyensn2001 changed the title [Fix] conflict notifications map [Fix] Conflict notifications map Sep 24, 2025
@maxdml maxdml self-assigned this Sep 24, 2025
Copy link
Collaborator

@maxdml maxdml left a comment

Choose a reason for hiding this comment

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

@maxdml maxdml merged commit 5501699 into dbos-inc:main Sep 24, 2025
2 checks 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