The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 1.09

  • Summary:
  • Two new scripts were added: 'rerun' schedules a job to be rerun, and 'mark' marks a previously job as Success or Failure. A new 'chained' option was added to the definition of repeat jobs, and a '--collapsed' option was added to the status script.
  • Details:
  • 1) The 'rerun' script makes a job available to be rerun, regardless of whether or not it ran successfuly. It does this by renaming the job's log files from FF.JJ.* to FF.JJ--Orig_n--.* where n is an integer that starts at 1 for the first rerun, and is incremented by one at every rerun.
  • 2) The 'mark' job marks a job as 'Success' or 'Failure', regardless of whether or not it ran successfully. It does this by renaming the job rc file from FF.JJ.x to FF.JJ.0 (in the case of Success) or FF.JJ.1 (in the case of Failure). If the job's status is already as requested, a warning is printed, and nothing is done.
  • 3) By default, repeat jobs (those that have the 'every' and 'until' options) have only one dependency - their time dependency. They are not dependent on each other. In retrospect, the correct behavior should have been to make the jobs also dependent on each other. Consider the case where a job is to run every hour, but for whatever reason, taskforest does not run until half-way through the day. This would cause half of the jobs to run at the same time at the first opportunity. The new 'chained' option makes the repeat jobs dependent on each other.
  • 4) Also related to repeat jobs: the new --collapsed option to the status command prevents repeat jobs that are in the 'Waiting' state from being displayed. This is especially useful when you have a job scheduled to be run once every minute, and it's only 8:00 a.m. You probably wouldn't want to see 960 entries when one would suffice.

Modules

Simple, powerful task scheduler
A collection of jobs
A representation of a program that can be run by the operating system
Functions related to today's log directory
Functions related to rerunning a job
Get options from command line and/or environment
Functions related to rerunning a job
intercept text sent to stdout or stderr
implementation class to which file handles are tied. See TaskForest::StringHandle;
A time costraint on a job