instance method
start_async
Ruby on Rails 1.3.2
Since v1.3.2 Last seen in v1.4.0Available in: v1.3.2 v1.4.0
Signature
start_async(launcher)
No documentation comment.
Parameters
-
launcherreq
Source
# File lib/puma/plugin/solid_queue.rb, line 54
def start_async(launcher)
if Gem::Version.new(Puma::Const::VERSION) < Gem::Version.new("7")
launcher.events.on_booted do
start_solid_queue(mode: :async, standalone: false)
end
launcher.events.on_stopped { solid_queue_supervisor&.stop }
launcher.events.on_restart do
solid_queue_supervisor&.stop
start_solid_queue(mode: :async, standalone: false)
end
else
launcher.events.after_booted do
start_solid_queue(mode: :async, standalone: false)
end
launcher.events.after_stopped { solid_queue_supervisor&.stop }
launcher.events.before_restart do
solid_queue_supervisor&.stop
start_solid_queue(mode: :async, standalone: false)
end
end
end
Defined in lib/puma/plugin/solid_queue.rb line 54
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Object