Class: TransactionalOutbox::Relay::GracefulShutdown

Inherits:
Object
  • Object
show all
Defined in:
lib/transactional_outbox/relay/graceful_shutdown.rb

Class Method Summary collapse

Class Method Details

.call(worker_set, exit_code = 0) ⇒ Object



7
8
9
10
11
# File 'lib/transactional_outbox/relay/graceful_shutdown.rb', line 7

def call(worker_set, exit_code = 0)
  worker_set.stop_workers

  call_exit(exit_code) if wait_workers(worker_set)
end