Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stagger worker start times

ActiveScaffold deletes and recreates assets; starting all workers at
once causes this process to choke.
  • Loading branch information...
commit 50914b57d82ee06d785ddfdbddba30a812f35121 1 parent 217c2c4
Caleb Cornman and Veezus Kreist authored shayarnett committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/specjour/manager.rb
View
1  lib/specjour/manager.rb
@@ -60,6 +60,7 @@ def drb_uri
def dispatch_workers
worker_pids.clear
(1..worker_size).each do |index|
+ sleep index * 5
worker_pids << fork do
exec "specjour work #{worker_options(index)}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.