fix: suppress exit code 143 from metric logger cleanup
The metric logger is killed via SIGTERM on benchmark completion, producing exit code 143 (128+15) which propagated through set -e. Added explicit return 0 / trailing true to cleanup traps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -136,7 +136,7 @@ log_info "Models: ${#MODEL_PATHS[@]}"
|
||||
METRICS_FILE="$RESULT_DIR/metrics.csv"
|
||||
bash "$SCRIPT_DIR/../monitor/log-metrics.sh" --output "$METRICS_FILE" --interval 2 &
|
||||
METRICS_PID=$!
|
||||
trap 'kill "$METRICS_PID" 2>/dev/null; wait "$METRICS_PID" 2>/dev/null' EXIT
|
||||
trap 'kill "$METRICS_PID" 2>/dev/null; wait "$METRICS_PID" 2>/dev/null; true' EXIT
|
||||
|
||||
# Run benchmarks (same logic as run-baseline.sh)
|
||||
for MODEL_PATH in "${MODEL_PATHS[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user