Skip to content

Commit

Permalink
Version 0.8.56
Browse files Browse the repository at this point in the history
- Now setting `no_rewind` for timeout aborts. Fixes #369.
  • Loading branch information
jhuckaby committed Jan 23, 2021
1 parent 449d578 commit cdf3a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -1589,8 +1589,9 @@ module.exports = Class.create({
if (job.timeout && (now - job.time_start >= job.timeout)) {
this.logDebug(4, "Job has exceeded max run time and will be aborted: " + id + " (" + job.timeout + " sec)");

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.8.55",
"version": "0.8.56",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <jhuckaby@gmail.com>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down

0 comments on commit cdf3a2e

Please sign in to comment.