Skip to content

Commit

Permalink
Update bin/check-and-renew
Browse files Browse the repository at this point in the history
Co-authored-by: Fuhu Xia <[email protected]>
  • Loading branch information
btylerburton and FuhuXia authored Aug 21, 2023
1 parent bd105b2 commit 5d1b44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/check-and-renew
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function check_running_job {
# Check the age of the last log
# If there are only two lines, there are no logs
if [[ $ok_to_restart == "YES" && $(($(log_count) > 2)) == '1' ]]; then
# if the timestamp is younger than 15 mins from start of script
# if the timestamp is younger than 40 mins from start of script
if [[ $((current_time - $(log_last_time) < 2400)) == '1' ]]; then
echo "Logs are too new! Not going to restart"
ok_to_restart="NO"
Expand Down

0 comments on commit 5d1b44a

Please sign in to comment.