abstract class ApplicationJob

Overview

Base class for jobs in the app. Overrides #perform so that jobs can implement trace_perform instead. This will allow for OpenTelemetry tracing if available, otherwise the job will be executed as it would if it overrides #perform (mosquito standard). If someone does override #perform on the job it will also have no behavior effect, other than tracing not taking place.

Direct Known Subclasses

Defined in:

jobs/application_job.cr

Class Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.job_name #

Base class for jobs in the app. Overrides #perform so that jobs can implement trace_perform instead. This will allow for OpenTelemetry tracing if available, otherwise the job will be executed as it would if it overrides #perform (mosquito standard). If someone does override #perform on the job it will also have no behavior effect, other than tracing not taking place.


[View source]

Instance Method Detail

def build_job_run #

Base class for jobs in the app. Overrides #perform so that jobs can implement trace_perform instead. This will allow for OpenTelemetry tracing if available, otherwise the job will be executed as it would if it overrides #perform (mosquito standard). If someone does override #perform on the job it will also have no behavior effect, other than tracing not taking place.


[View source]
def perform #
Description copied from class Mosquito::Job

abstract, override in a Job descendant to do something productive


[View source]

Macro Detail

macro params(*parameters) #

Base class for jobs in the app. Overrides #perform so that jobs can implement trace_perform instead. This will allow for OpenTelemetry tracing if available, otherwise the job will be executed as it would if it overrides #perform (mosquito standard). If someone does override #perform on the job it will also have no behavior effect, other than tracing not taking place.


[View source]