diff --git a/lib/api/job.js b/lib/api/job.js index fe96d8f9..3d46533c 100644 --- a/lib/api/job.js +++ b/lib/api/job.js @@ -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) { diff --git a/package.json b/package.json index 9890e239..cbe6c910 100644 --- a/package.json +++ b/package.json @@ -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 ", "homepage": "https://github.com/jhuckaby/Cronicle",