class

Scron::Runner

Inherits Reference < Object

Runs overdue jobs and updates relevant files. Responsibilities include:

  • parsing the schedule file
  • using Schedule and History to determine which jobs are overdue
  • running overdue jobs and updating the history/log files

Constructors

new(schedule_file : String, history_file : String, log_file : String, now : Time = Time.local)
Source

Instance methods

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.

Source