mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-27 14:06:14 +00:00
test(python): restore fatal traceback handler after torch worker setup
This commit is contained in:
@@ -325,6 +325,7 @@ def _fork_dataloader_diagnostics(worker_id=None):
|
||||
print(
|
||||
f"DataLoader pid={os.getpid()} worker={worker_id}", file=sys.stderr, flush=True
|
||||
)
|
||||
faulthandler.disable()
|
||||
faulthandler.enable(all_threads=True)
|
||||
faulthandler.register(signal.SIGUSR1, all_threads=True, chain=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user