Closed yaricom closed 4 years ago
Return worker back to queue only after cleaning the cache to avoid possible race conditions. Otherwise the worker can be reused and come back to this method while cache become cleared from previous visit and this will result in key error.
Hi yaricom,
Thank you very much for your contribution! Nice catch with that very subtle bug.
Return worker back to queue only after cleaning the cache to avoid possible race conditions. Otherwise the worker can be reused and come back to this method while cache become cleared from previous visit and this will result in key error.