SIGN IN SIGN UP

gh-117293: Fix race condition in run_workers.py (#117298)

The worker thread may still be alive after it enqueues it's last result,
which can lead to a delay of 30 seconds after the test finishes. This
happens much more frequently in the free-threaded build with the GIL
disabled.

This changes run_workers.py to track of live workers by enqueueing a
`WorkerExited()` instance before the worker exits.
S
Sam Gross committed
26a680a58524fe39eecb243e37adfa6e157466f6
Parent: 59864ed
Committed by GitHub <noreply@github.com> on 4/8/2024, 2:47:42 PM