JoobQ::APIServer
Inherits Reference < Object
Constants
Log = ::Log.for("API SERVER")
Class methods
start(address : String = "127.0.0.1", port : Int32 = 8080, *, policy : ManagementPolicy = ManagementPolicy.from_env)
Sourcestop
Closes the listener started by start (which then returns). Does nothing when none is running.
Instance methods
start(address : String = "127.0.0.1", port : Int32 = 8080, *, policy : ManagementPolicy = ManagementPolicy.from_env)
Serves until APIServer.stop (or JoobQ.shutdown). Returns at once, without listening, when the shutdown
has begun.