There was a CombineLatest storing the SubjectState inside this workflow which was resending the old event of a visit when subject state changed. The timestamp from the past would sometimes imply that the logger would try to write into a file that was previously created and closed, causing the application to crash.
The FormatRegionVisits.bonsai was refactored to ensure only subject visit changes are logged by adding a WithLatestFrom to gate the output from CombineLatest.
There was a
CombineLatest
storing theSubjectState
inside this workflow which was resending the old event of a visit when subject state changed. The timestamp from the past would sometimes imply that the logger would try to write into a file that was previously created and closed, causing the application to crash.The
FormatRegionVisits.bonsai
was refactored to ensure only subject visit changes are logged by adding aWithLatestFrom
to gate the output fromCombineLatest
.Fixes #514