Debug
Debug hanging multi-process
assuming pip install py-spy has been performed already
To get all the tracebacks at once:
pgrep -P $(pgrep -P $(pgrep -n arctic_training) | tail -1) | xargs -I {} py-spy dump --pid {}
but probably we want just the first few calls in MainSthread thread:
pgrep -P $(pgrep -P $(pgrep -n arctic_training) | tail -1) | xargs -I {} py-spy dump --pid {} | grep -A5 MainThread