class Mosquito::Runners::Executor
- Mosquito::Runners::Executor
- Reference
- Object
Overview
An Executor is responsible for building Job classes with deserialized parameters and calling #run on them. It measures the time it takes to run a job and provides detailed log messages about the current status.
Executor#deqeue_and_run_jobs is the entrypoint and shoud be treated as if it will return only after a relative eternity.
Included Modules
Defined in:
mosquito/runners/executor.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
- #dequeue_and_run_jobs
-
#failed_job_ttl : Int32
How long a job config is persisted after failure
-
#failed_job_ttl=(failed_job_ttl : Int32)
How long a job config is persisted after failure
- #queue_list : QueueList
- #run_next_job(q : Queue)
-
#successful_job_ttl : Int32
How long a job config is persisted after success
-
#successful_job_ttl=(successful_job_ttl : Int32)
How long a job config is persisted after success
- #time_with_units(seconds : Float64)
Instance methods inherited from module Mosquito::Runners::RunAtMost
execution_timestamps
execution_timestamps
Constructor Detail
Instance Method Detail
def successful_job_ttl=(successful_job_ttl : Int32)
#
How long a job config is persisted after success