Class: TransactionalOutbox::Relay::Runner
- Inherits:
-
Object
- Object
- TransactionalOutbox::Relay::Runner
- Defined in:
- lib/transactional_outbox/relay/runner.rb
Class Method Summary collapse
Class Method Details
.start ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/transactional_outbox/relay/runner.rb', line 11 def start TransactionalOutbox::Relay.monitor.publish(TransactionalOutbox::RUNNER_INIT_MONITOR_EVENT) worker_set = TransactionalOutbox::Relay::WorkerSet.new start_relay(worker_set) rescue StandardError => e shutdown(e, worker_set, 1) rescue SignalException => e shutdown(e, worker_set, 0) end |