diff --git a/config/routes.rb b/config/routes.rb index 765612b..c962550 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -if File.basename($0) != 'rake' +if ENV['worker_num']=='0' && File.basename($0) != 'rake' Thread.new do update_route_interval = RulingBusSetting.first.update_route_interval while 1