cartodb-4.42/script/server_load.rb

22 lines
336 B
Ruby
Raw Permalink Normal View History

2024-04-06 13:25:13 +08:00
#!/usr/bin/env ruby
require_relative '../lib/cartodb/threads_machine'
require_relative '../lib/cartodb/scripts/server_load'
class ServerLoad < ThreadsMachine
def execute
MAX_THREADS.times do
queue.enq(ServerLoadScript)
end
async do |load_script|
load_script.new
end
end
end
ServerLoad.new.execute