File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ An unnamed hook (`before_perform`) will be executed first.
6666
6767The available hooks are:
6868
69- * ` before _enqueue ` : Called with the job args before a job is placed on the queue.
69+ * ` before_enqueue ` : Called with the job args before a job is placed on the queue.
7070 If the hook returns ` false ` , the job will not be placed on the queue.
7171
7272* ` after_enqueue ` : Called with the job args after a job is placed on the queue.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module Failure
55 class Redis < Base
66 def save
77 data = {
8- :failed_at => Time . now . strftime ( "%Y/%m/%d %H:%M:%S" ) ,
8+ :failed_at => Time . now . strftime ( "%Y/%m/%d %H:%M:%S %Z " ) ,
99 :payload => payload ,
1010 :exception => exception . class . to_s ,
1111 :error => exception . to_s ,
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ def working_on(job)
391391 job . worker = self
392392 data = encode \
393393 :queue => job . queue ,
394- :run_at => Time . now . to_s ,
394+ :run_at => Time . now . strftime ( "%Y/%m/%d %H:%M:%S %Z" ) ,
395395 :payload => job . payload
396396 redis . set ( "worker:#{ self } " , data )
397397 end
You can’t perform that action at this time.
0 commit comments