Method: Exekutor::Internal::CLI::Manager#start
- Defined in:
- lib/exekutor/internal/cli/manager.rb
#start(options) ⇒ Void
Starts a new worker
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/exekutor/internal/cli/manager.rb', line 29 def start() Process.setproctitle "Exekutor worker (Initializing…) [#{$PROGRAM_NAME}]" daemonize(restarting: [:restart]) if [:daemonize] load_application([:environment]) # Specify `yield: true` to prevent running in the context of the loaded module ActiveSupport.on_load(:exekutor, yield: true) do = ([:configfile], cli_worker_overrides()) ActiveSupport.on_load(:active_record, yield: true) do start_and_join_worker(, [:daemonize]) end end end |