From fcacc7442537533ebeef17ed484a623da753b642 Mon Sep 17 00:00:00 2001 From: Martin Reuter Date: Sun, 25 Jan 2026 02:43:06 +0100 Subject: [PATCH] Add timeout to version.py execution --- run_fastsurfer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_fastsurfer.sh b/run_fastsurfer.sh index 0f7c3cd0..881bab4c 100755 --- a/run_fastsurfer.sh +++ b/run_fastsurfer.sh @@ -870,7 +870,7 @@ trap "{ echo \"run_fastsurfer.sh terminated via signal at \$(date -R)!\" | tee - # create the build log, file with all version info in parallel # uses ${version_cache_args}, which is filled exactly if a build_cache file exists printf "%s %s\n%s\n" "$THIS_SCRIPT" "${inputargs[*]}" "$(date -R)" >> "$build_log" -$python "$FASTSURFER_HOME/FastSurferCNN/version.py" --sections all -o "$build_log" "${version_cache_args[@]}" & +timeout 20 $python "$FASTSURFER_HOME/FastSurferCNN/version.py" --sections all -o "$build_log" "${version_cache_args[@]}" & if [[ "$run_seg_pipeline" != "1" ]] then