Sha256: 60a44da49ed107fa2e3c0af0eb6c23ae2898810cc4ddaabcf815dc40e15cb3d2
Contents?: true
Size: 1.12 KB
Versions: 13
Compression:
Stored size: 1.12 KB
Contents
require 'rocket_job/server/model' require 'rocket_job/server/state_machine' module RocketJob # Server # # On startup a server instance will automatically register itself # if not already present # # Starting a server in the foreground: # - Using a Rails runner: # bin/rocketjob # # Starting a server in the background: # - Using a Rails runner: # nohup bin/rocketjob --quiet 2>&1 1>output.log & # # Stopping a server: # - Stop the server via the Web UI # - Send a regular kill signal to make it shutdown once all active work is complete # kill <pid> # - Or, use the following Ruby code: # server = RocketJob::Server.where(name: 'server name').first # server.stop! # # Sending the kill signal locally will result in starting the shutdown process # immediately. Via the UI or Ruby code the server can take up to 15 seconds # (the heartbeat interval) to start shutting down. class Server include Plugins::Document include Plugins::StateMachine include SemanticLogger::Loggable include Server::Model include Server::StateMachine end end
Version data entries
13 entries across 13 versions & 1 rubygems