Browse files

clearing jobs file from a better place

  • Loading branch information...
1 parent 15a5d7c commit 6c30893f9ca79cc9ee0bb09fed069d7f628a0ab4 @caike caike committed Sep 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 config/environments/development.rb
View
3 config/environments/development.rb
@@ -51,7 +51,6 @@ def push(job)
def pop
if job = read_from_file
- clear_file
job
else
Struct.new(:run).new(true)
@@ -74,6 +73,8 @@ def read_from_file
Marshal.load(file)
end
rescue EOFError
+ ensure
+ clear_file
end
end

0 comments on commit 6c30893

Please sign in to comment.