Class: OurEelHacks::ScaleOnRoutingQueue

Inherits:
Rack show all
Defined in:
lib/our-eel-hacks/rack.rb

Instance Method Summary collapse

Methods inherited from Rack

#call, #metrics_from

Methods included from Defer::EventMachine

#trigger_scaling

Constructor Details

#initialize(app, flavor = :web) ⇒ ScaleOnRoutingQueue

Returns a new instance of ScaleOnRoutingQueue.



31
32
33
# File 'lib/our-eel-hacks/rack.rb', line 31

def initialize(app, flavor = :web)
  super(app, "HTTP_X_HEROKU_QUEUE_DEPTH", flavor)
end