instance method
start
Ruby on Rails 7.2.3
Since v6.1.7.10Signature
start()
No documentation comment.
Source
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 14
def start
fork do
set_process_title("(starting)")
DRb.stop_service
@queue = DRbObject.new_with_uri(@url)
@queue.start_worker(@id, Process.pid)
begin
after_fork
rescue => @setup_exception; end
work_from_queue
ensure
set_process_title("(stopping)")
run_cleanup
@queue.stop_worker(@id, Process.pid)
end
end
Defined in activesupport/lib/active_support/testing/parallelization/worker.rb line 14
· View on GitHub
· Improve this page
· Find usages on GitHub