AZ
Size: a a a
AZ
RU
RU
on_worker_boot
AZ
AZ
on_worker_boot do
Redis.current = Redis.new
# worker specific setup
ActiveSupport.on_load(:active_record) do
config = ActiveRecord::Base.configurations[Rails.env] ||
Rails.application.config.database_configuration[Rails.env]
config["pool"] = ENV["DB_POOL"] || 8
ActiveRecord::Base.establish_connection(config)
end
end
AZ
RU
TK
IK
TK
7
BO
ЮМ
МВ
BO
МВ
BO
BO
BO