Skip to content

Commit

Permalink
Merge branch 'defunkt' into distributed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpd committed Aug 17, 2011
2 parents b8549ed + e947af0 commit 65780fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/HOOKS.md
Expand Up @@ -66,7 +66,7 @@ An unnamed hook (`before_perform`) will be executed first.

The available hooks are:

* `before _enqueue`: Called with the job args before a job is placed on the queue.
* `before_enqueue`: Called with the job args before a job is placed on the queue.
If the hook returns `false`, the job will not be placed on the queue.

* `after_enqueue`: Called with the job args after a job is placed on the queue.
Expand Down
2 changes: 1 addition & 1 deletion lib/resque/failure/redis.rb
Expand Up @@ -5,7 +5,7 @@ module Failure
class Redis < Base
def save
data = {
:failed_at => Time.now.strftime("%Y/%m/%d %H:%M:%S"),
:failed_at => Time.now.strftime("%Y/%m/%d %H:%M:%S %Z"),
:payload => payload,
:exception => exception.class.to_s,
:error => exception.to_s,
Expand Down
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Expand Up @@ -391,7 +391,7 @@ def working_on(job)
job.worker = self
data = encode \
:queue => job.queue,
:run_at => Time.now.to_s,
:run_at => Time.now.strftime("%Y/%m/%d %H:%M:%S %Z"),
:payload => job.payload
redis.set("worker:#{self}", data)
end
Expand Down

0 comments on commit 65780fc

Please sign in to comment.