Commit 2936fc3
committed
Fix signal handler flood: only install in main process
setup_signal_handlers() was being called in every ruffus worker
subprocess (each one inherits the parent's handler via fork). When
the pipeline exits and SIGTERM is broadcast to the process group,
every worker logs 'Received signal 15. Starting clean-up.' and runs
cleanup in parallel, producing dozens of duplicate log lines.
Fix: skip handler installation in non-main processes using
multiprocessing.current_process().name.1 parent 98e72f1 commit 2936fc3
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
926 | | - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
927 | 935 | | |
928 | 936 | | |
929 | 937 | | |
| |||
0 commit comments