generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: race condition while collecting runtime events (#3917)
Fixes a race condition where multiple go routines would try and append to the same slice concurrently. We would end up losing some RuntimeEvents. The fix involves publishing to a channel, aggregating the events and then marking the step as complete. I only started seeing the bug when pubsub provisioning began completing multiple steps in quick succession: #3916
- Loading branch information
Showing
1 changed file
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters