class Scron::Runner
- Scron::Runner
- Reference
- Object
Overview
Runs overdue jobs and updates relevant files. Responsibilities include:
- parsing the schedule file
- using
Schedule
andHistory
to determine which jobs are overdue - running overdue jobs and updating the history/log files
Defined in:
scron/runner.crConstructors
Instance Method Summary
-
#run
Find overdue jobs, run them, record history, and log everything.
Constructor Detail
def self.new(schedule_file : String, history_file : String, log_file : String, now : Time = Time.local)
#
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.