class Mosquito::Api::JobRun

Overview

Represents a job run in Mosquito.

This class is used to inspect a job run stored in the backend.

For more information about a JobRun, see Mosquito::JobRun.

Defined in:

mosquito/api/job_run.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String) #

Instance Method Detail

def enqueue_time : Time #

The moment this job was enqueued.


def finished_at : Time | Nil #

The moment this job was finished.


def found? : Bool #

Does a JobRun with this ID exist in the backend?


def id : String #

The id of the job run.


def retry_count : Int #

The number of times this job has been retried.


def runtime_parameters : Hash(String, String) #

Get the parameters the job was enqueued with.


def started_at : Time | Nil #

The moment this job was started.


def type : String #

The type of job this job run is for.