Skip to content

Commit cdf3a2e

Browse files
committed
Version 0.8.56
- Now setting `no_rewind` for timeout aborts. Fixes #369.
1 parent 449d578 commit cdf3a2e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/job.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1589,8 +1589,9 @@ module.exports = Class.create({
15891589
if (job.timeout && (now - job.time_start >= job.timeout)) {
15901590
this.logDebug(4, "Job has exceeded max run time and will be aborted: " + id + " (" + job.timeout + " sec)");
15911591

1592+
// JH 2021-01-23 Setting no_rewind to 1 for timeout aborts, as per GH #369
15921593
var nice_timeout = Tools.getTextFromSeconds( job.timeout, false, true );
1593-
this.abortJob({ id: id, reason: "Exceeded maximum run time ("+nice_timeout+")" });
1594+
this.abortJob({ id: id, reason: "Exceeded maximum run time ("+nice_timeout+")", no_rewind: 1 });
15941595
continue;
15951596
} // timed out
15961597

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Cronicle",
3-
"version": "0.8.55",
3+
"version": "0.8.56",
44
"description": "A simple, distributed task scheduler and runner with a web based UI.",
55
"author": "Joseph Huckaby <[email protected]>",
66
"homepage": "https://github.com/jhuckaby/Cronicle",

0 commit comments

Comments
 (0)