[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [ernie/master 1/3] Reduce the maximum expected execution time from 60 to 55 minutes.
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Wed, 14 Apr 2010 09:25:34 +0200
Subject: Reduce the maximum expected execution time from 60 to 55 minutes.
Commit: 9b684f113404268adcc03ab0438ced06d93426b8
With an expected execution time of 60 minutes and an hourly cronjob, we're
more likely to interpret a failed run as still running. If it's a
persistent problem, we'll see a sequence of failure, still-running,
failure, ..., when we should in fact see failure, failure, failure.
---
src/LockFile.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/LockFile.java b/src/LockFile.java
index aa3aa68..7e0503b 100644
--- a/src/LockFile.java
+++ b/src/LockFile.java
@@ -18,7 +18,7 @@ public class LockFile {
BufferedReader br = new BufferedReader(new FileReader("lock"));
long runStarted = Long.parseLong(br.readLine());
br.close();
- if (System.currentTimeMillis() - runStarted < 60L * 60L * 1000L) {
+ if (System.currentTimeMillis() - runStarted < 55L * 60L * 1000L) {
return false;
}
}
--
1.6.5