Skip to content

Commit

Permalink
Safety Timeout
Browse files Browse the repository at this point in the history
Closes Emergency timeout of 5 minutes for clipper #42
  • Loading branch information
nelsonjchen committed Sep 24, 2023
1 parent d5f47ed commit 17c1a47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def predict(

# Start the shell command and capture its output
command = [
# Run with GNU timeout to prevent runaway processes
"timeout",
"10m",
"./clip.sh",
route,
f"--start-seconds={startSeconds}",
Expand Down

0 comments on commit 17c1a47

Please sign in to comment.