Skip to content

Commit 65780fc

Browse files
author
mpd
committed
Merge branch 'defunkt' into distributed
2 parents b8549ed + e947af0 commit 65780fc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/HOOKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ An unnamed hook (`before_perform`) will be executed first.
6666

6767
The 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.

lib/resque/failure/redis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

lib/resque/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)