Skip to content

Commit

Permalink
Version 0.8.37
Browse files Browse the repository at this point in the history
Now correctly throwing an error instead of crashing when starting a job
and the event's category, plugin, or server group cannot be found.
  • Loading branch information
jhuckaby committed Nov 27, 2019
1 parent 1e9ed43 commit 3cfc7ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ module.exports = Class.create({
function(err) {
// all resources loaded
if (err) return callback(err);
if (!server_group && !servers.length) return callback( new Error("Server or Server Group not found: " + event.target) );
if (!plugin) return callback( new Error("Plugin not found: " + event.plugin) );
if (!category) return callback( new Error("Category not found: " + event.category) );
if (!orig_event) return callback( new Error("Event not found: " + event.id) );

var all_jobs = self.getAllActiveJobs(true); // include pending jobs
var job_list = Tools.hashValuesToArray( all_jobs );
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.36",
"version": "0.8.37",
"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 3cfc7ef

Please sign in to comment.