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.
66
66
67
67
The available hooks are:
68
68
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.
70
70
If the hook returns ` false ` , the job will not be placed on the queue.
71
71
72
72
* ` 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
5
5
class Redis < Base
6
6
def save
7
7
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 " ) ,
9
9
:payload => payload ,
10
10
:exception => exception . class . to_s ,
11
11
:error => exception . to_s ,
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ def working_on(job)
391
391
job . worker = self
392
392
data = encode \
393
393
:queue => job . queue ,
394
- :run_at => Time . now . to_s ,
394
+ :run_at => Time . now . strftime ( "%Y/%m/%d %H:%M:%S %Z" ) ,
395
395
:payload => job . payload
396
396
redis . set ( "worker:#{ self } " , data )
397
397
end
You can’t perform that action at this time.
0 commit comments