fix(api): subscribe before namespace workflow dispatch#4654
fix(api): subscribe before namespace workflow dispatch#4654NathanFlurry wants to merge 1 commit intographite-base/4654from
Conversation
Code ReviewPR: fix(api): subscribe before namespace workflow dispatch OverviewThis PR fixes a classic race condition in the namespace creation API ( The fix reorders operations to: subscribe → dispatch → wait, which is the correct pattern for event-driven pub-sub systems. AnalysisCorrectness: This fix is clearly right. The original ordering:
The fixed ordering:
The subscribe-before-publish pattern is fundamental: the listener must be in place before triggering the event source. This is especially important because namespace creation could complete near-synchronously in local/test environments with minimal I/O. Observations
Suggestions
SummaryThis is a correct and necessary bug fix. The change is small, targeted, and applies the right subscribe-before-dispatch ordering. Good to merge once out of draft. |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: