Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Open
Description
Bug report
Bug description:
I have a single threading.Timer held on a class as self.timer...
defrefresh_timer(self):ifself.timerisnotNone:self.timer.cancel()self.timer=threading.Timer(self.worker_context.timeout_minutes*60,self.stop_cycle)self.timer.start()
As recently as 3.10 this code worked. As of 3.12 it errors with "can't create new thread at interpreter shutdown". The code has not changed, and the interpreter is not shutting down at the time this error is thrown, as in the process is live and code is executing. There are no code changes from where this is working in 3.10 to where it is not in3.12.1 (upgraded from 3.12 to 3.12.1 and tsted again to see if this had been fixed).
CPython versions tested on:
3.12
Operating systems tested on:
Windows