instance method
start
Ruby on Rails 1.2.4
Since v1.0.2 Last seen in v1.4.0Signature
start(launcher)
No documentation comment.
Parameters
-
launcherreq
Source
# File lib/puma/plugin/solid_queue.rb, line 6
def start(launcher)
@log_writer = launcher.log_writer
@puma_pid = $$
in_background do
monitor_solid_queue
end
if Gem::Version.new(Puma::Const::VERSION) < Gem::Version.new("7")
launcher.events.on_booted do
@solid_queue_pid = fork do
Thread.new { monitor_puma }
SolidQueue::Supervisor.start
end
end
launcher.events.on_stopped { stop_solid_queue }
launcher.events.on_restart { stop_solid_queue }
else
launcher.events.after_booted do
@solid_queue_pid = fork do
Thread.new { monitor_puma }
SolidQueue::Supervisor.start
end
end
launcher.events.after_stopped { stop_solid_queue }
launcher.events.before_restart { stop_solid_queue }
end
end
Defined in lib/puma/plugin/solid_queue.rb line 6
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Object