stormtroopers 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/stormtroopers/manager.rb +2 -3
- data/lib/stormtroopers/version.rb +1 -1
- metadata +1 -1
@@ -25,12 +25,11 @@ module Stormtroopers
|
|
25
25
|
logger.info "Ludicrous speed? Sir! we have never gone that fast before, I dont know if the ship can take it! Whats the matter Colonel Sanders? CHICKEN?!"
|
26
26
|
puts "Ludicrous speed? Sir! we have never gone that fast before, I dont know if the ship can take it! Whats the matter Colonel Sanders? CHICKEN?!"
|
27
27
|
Delayed::Backend::Mongoid::Job.class_eval do
|
28
|
-
def self.reserve(worker, max_run_time = Worker.max_run_time)
|
28
|
+
def self.reserve(worker, max_run_time = Delayed::Worker.max_run_time)
|
29
29
|
where(failed_at: nil, locked_at: nil).find_and_modify({"$set" => {locked_at: db_time_now, locked_by: worker.name}}, new: true)
|
30
30
|
end
|
31
31
|
end
|
32
|
-
end
|
33
|
-
|
32
|
+
end
|
34
33
|
|
35
34
|
while managing? do
|
36
35
|
assigned = armies.map(&:manage)
|