Open niki-timofe opened 4 years ago
Sorry for the very long time, I'd like to merge the request but I don't fully understand the code. Was an error raised on CancellationToken Request ? how does it relates to #89 ?
Oh, it was a very long time ago. But as far as I remember, we faced an issue, while trying to implement switching between data-centers mechanics.
Our idea was to have running, but passive instances in reserving DC. The issue is that when switching, server won't receive new jobs, because ISubscriber
and ResetEvent
have been disposed.
Seems like it relates to #89 by the error message.
For now, fork with my changes is running in production, and there are no issues with Redis.
Fix lost subscription when BackgroundJobServer being stopped and then recreated
Fixes #89