This is an updated implementation of workspace switching. This significantly reduces the amount of time it will take to switch workspaces, since only upload batching is performed before the switch, and any remaining batches are uploaded later.
Testing Plan
[x] Was this tested locally? If not, explain why.
Tested extensively using a test app sending events to two different workspaces in addition to unit tests
Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)
Summary
This is an updated implementation of workspace switching. This significantly reduces the amount of time it will take to switch workspaces, since only upload batching is performed before the switch, and any remaining batches are uploaded later.
Testing Plan
Tested extensively using a test app sending events to two different workspaces in addition to unit tests
Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)