mirror of
https://github.com/plashchynski/crono.git
synced 2026-06-12 01:34:25 +02:00
Fix job saving
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
Thread.abort_on_exception = true
|
||||
|
||||
require 'crono'
|
||||
require 'optparse'
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user