struct Conveyor::Job::Bogus

Overview

You can use this job type for testing empty jobs, such as benchmarking your job-processing infrastructure (compute infra and Redis).

Defined in:

job.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Conveyor::Job

call call, enqueue(*, queue : String = self.queue, configuration config : Configuration = CONFIG) : String enqueue, schedule(in delay : Time::Span, queue : String = self.queue, configuration config : Configuration = CONFIG) : String
schedule(at time : Time, queue : String = self.queue, configuration config : Configuration = CONFIG) : String
schedule

Constructor methods inherited from struct Conveyor::Job

new(pull : JSON::PullParser) new

Class methods inherited from struct Conveyor::Job

dequeue(id : String, *, configuration config : Configuration = CONFIG) : Nil dequeue, max_attempts(max_attempts : Int32)
max_attempts : Int32
max_attempts
, unschedule(id : String, configuration config : Configuration = CONFIG) : Nil unschedule

Macros inherited from struct Conveyor::Job

queue(name) queue

Constructor Detail

def self.new(pull : JSON::PullParser) #

You can use this job type for testing empty jobs, such as benchmarking your job-processing infrastructure (compute infra and Redis).


[View source]

Instance Method Detail

def call #
Description copied from struct Conveyor::Job

Override this method to provide this job's functionality.


[View source]
def conveyor_job_type #

You can use this job type for testing empty jobs, such as benchmarking your job-processing infrastructure (compute infra and Redis).