Fix job saving

This commit is contained in:
Dzmitry Plashchynski
2016-06-24 13:33:57 +03:00
parent e1c143db60
commit de070d5bfa
4 changed files with 3 additions and 3 deletions
+2
View File
@@ -1,3 +1,5 @@
Thread.abort_on_exception = true
require 'crono'
require 'optparse'
+1 -1
View File
@@ -65,7 +65,7 @@ module Crono
saved_log = model.reload.log || ''
log_to_save = saved_log + job_log.string
model.update(last_performed_at: last_performed_at, log: log_to_save,
healthy: healthy, args: job_args)
healthy: healthy)
end
def perform_job