module Mosquito::Api

Defined in:

mosquito/api.cr
mosquito/api/concurrency_config.cr
mosquito/api/executor.cr
mosquito/api/job_run.cr

Class Method Summary

Class Method Detail

def self.concurrency_config : ConcurrencyConfig #

Returns a ConcurrencyConfig instance for reading and writing the remotely stored concurrency limits used by RemoteConfigDequeueAdapter.


def self.concurrency_limits(overseer_id : String) : Hash(String, Int32) #

Convenience reader for a specific overseer's concurrency limits.


def self.concurrency_limits : Hash(String, Int32) #

Convenience reader for the current global remote concurrency limits.


def self.event_receiver : Channel(Backend::BroadcastMessage) #

def self.executor(id : String) : Executor #

def self.executor_config : ExecutorConfig #

Returns an ExecutorConfig instance for reading and writing the remotely stored executor count.


def self.executor_count(overseer_id : String) : Int32 | Nil #

Convenience reader for a specific overseer's executor count.


def self.executor_count : Int32 | Nil #

Convenience reader for the global remote executor count.


def self.job_run(id : String) : JobRun #

def self.list_overseers : Array(Overseer) #

def self.list_periodic_jobs : Array(PeriodicJob) #

def self.list_queues : Array(Observability::Queue) #

def self.overseer(id : String) : Overseer #

def self.set_concurrency_limits(limits : Hash(String, Int32), overseer_id : String) : Nil #

Convenience writer — replaces stored concurrency limits for a specific overseer.


def self.set_concurrency_limits(limits : Hash(String, Int32)) : Nil #

Convenience writer — replaces the global stored concurrency limits so that all RemoteConfigDequeueAdapter instances pick them up on their next refresh cycle.


def self.set_executor_count(count : Int32, overseer_id : String) : Nil #

Convenience writer — sets the executor count for a specific overseer.


def self.set_executor_count(count : Int32) : Nil #

Convenience writer — sets the global executor count override.