unilab.ipc.collector_error.collector_error_guard¶
- unilab.ipc.collector_error.collector_error_guard(error_conn=None, metrics_queue=None, stop_event=None, label='collector')[source]¶
Context manager that catches all exceptions in collector subprocess.
Sends a picklable ExceptionWrapper through the error pipe so the parent process can surface the full traceback. Also pushes to metrics_queue for fast-path detection by the training loop.