Skip to content

Commit

Permalink
Version 0.9.56
Browse files Browse the repository at this point in the history
- Fix bug where live log view/download failed on detached jobs.  Fixes #786.
  • Loading branch information
jhuckaby committed Jul 18, 2024
1 parent 801d103 commit 08b1288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/api/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ module.exports = Class.create({
id: /^\w+$/
}, callback)) return;

var job = this.activeJobs[query.id] || {};

// see if log file exists on this server
var log_file = this.server.config.get('log_dir') + '/jobs/' + query.id + '.log';
var log_file = this.server.config.get('log_dir') + '/jobs/' + query.id + (job.detached ? '-detached' : '') + '.log';

fs.stat( log_file, function(err, stats) {
if (err) {
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.9.55",
"version": "0.9.56",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down

0 comments on commit 08b1288

Please sign in to comment.