Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
Merge b714e23 into c41dac4
Browse files Browse the repository at this point in the history
  • Loading branch information
kitak committed Aug 17, 2013
2 parents c41dac4 + b714e23 commit b1c88f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/workers/build_worker.rb
Expand Up @@ -9,5 +9,11 @@ def perform(id)
def perform_async(id)
Resque.enqueue(self, id)
end

def on_failure(*args)
id = args[1]
message = args[0].message
Build.find(id).update_attributes!(finished_at: Time.now, output: message, status: false)
end
end
end

0 comments on commit b1c88f3

Please sign in to comment.