Class: Faktory::Connection
- Inherits:
-
Object
- Object
- Faktory::Connection
- Defined in:
- lib/faktory/connection.rb
Class Method Summary collapse
Class Method Details
.create(options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/faktory/connection.rb', line 7 def create(={}) size = Faktory.worker? ? (Faktory.[:concurrency] + 2) : 5 ConnectionPool.new(:timeout => [:pool_timeout] || 1, :size => size) do Faktory::Client.new(**) end end |