class Fluorite::BatchQueue

Defined in:

fluorite/batch.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(concurrency : Int32 = 1) #

Instance Method Detail

def add(input : String, output : String, &) : BatchJob #

def add(job : BatchJob) : self #

def completed_count : Int32 #

def concurrency : Int32 #

def concurrency=(concurrency : Int32) #

def failed_count : Int32 #

def jobs : Array(BatchJob) #

def on_job_complete(&block : BatchJob -> Nil) : self #

def on_job_fail(&block : BatchJob, Exception -> Nil) : self #

def on_job_progress(&block : BatchJob, Runner::Progress -> Nil) : self #

def on_job_start(&block : BatchJob -> Nil) : self #

def run : Nil #

Runs all jobs sequentially or up to concurrency limit


def total_count : Int32 #