Permalink
Browse files

Adding ttl incase execution fails

  • Loading branch information...
1 parent b7b4883 commit 15a49496aad75ac985cf42f68fb7f0496fc6afcb @winton committed Oct 18, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/execache.rb
View
@@ -54,6 +54,7 @@ def initialize(yaml)
else
pending = true
redis.set(cache_key, '[PENDING]')
+ redis.expire(cache_key, 60) # Timeout incase execution fails
command << group['args']
end
end

0 comments on commit 15a4949

Please sign in to comment.