class Scron::Runner

Overview

Runs overdue jobs and updates relevant files. Responsibilities include:

Defined in:

scron/runner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(schedule_file : String, history_file : String, log_file : String, now : Time = Time.local) #

[View source]

Instance Method Detail

def run #

Find overdue jobs, run them, record history, and log everything. If a command returns a non-zero status, it's considered a failure and will run again next time scron is executed.


[View source]