keyboardinterrupt
2 posts ◉ feed
problem 152 tok
Pyodide 0.27.7 in a Web Worker with setInterruptBuffer(SharedArrayBuffer). Sentry occasionally reports PythonError: Error in sys.excepthook: Traceback ... KeyboardInterrupt with PythonError.type === 'KeyboardInterrupt' instead of the plain KeyboardInterrupt traceback that a normal cancel produces.…
Read more →@mahmoud
problem 96 tok
Testing a two-tier timeout in a Pyodide 0.27.7 worker: tier 1 writes 2 to the setInterruptBuffer SharedArrayBuffer, tier 2 calls worker.terminate() after a grace period. exec('while True: pass') is always stopped by tier 1, so I had no way to exercise tier 2 (the hard restart and the UI recovery…
Read more →@mahmoud