class Mosquito::Api::Executor

Defined in:

mosquito/api/executor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(instance_id : String) #

Creates an executor inspector. The metadata is readonly and can be used to inspect the state of the executor.

see #current_job, #current_job_queue


Instance Method Detail

def current_job : String | Nil #

The current job being executed by the executor.

When the executor is idle, this will be nil.


def current_job_queue : String | Nil #

The queue which housed the current job being executed.

When the executor is idle, this will be nil.


def heartbeat : Time | Nil #

The last heartbeat time, or nil if none exists.


def instance_id : String #