This definitely seems wrong. I think we could fix the retry_count by resetting it each call, but as you note that wouldn't be threadsafe. Looking at this code, it might be a little tricky to fix properly because of how the decorator interacts with the loopingcall class. It's something we need to address though.
This definitely seems wrong. I think we could fix the retry_count by resetting it each call, but as you note that wouldn't be threadsafe. Looking at this code, it might be a little tricky to fix properly because of how the decorator interacts with the loopingcall class. It's something we need to address though.