Show More
Commit Description:
keep all heartbeat instead of only the latest one...
Commit Description:
keep all heartbeat instead of only the latest one (grafted from 0bdf62fde5fdb94d6f94c2b8b8ebc58ffbe8d2f9)
References:
File last commit:
Show/Diff file:
Action:
test/concurrent/task_test_setup.rb | 18 lines | 340 B | text/x-ruby | RubyLexer |
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
def clear_all_tasks
Task.find(:all).each do |task|
task.destroy
end
end
clear_all_tasks
(1..1000).each do |i|
Task.create(:id => i,
:submission_id => i,
:status => Task::STATUS_INQUEUE)
end