buildbox-2.2.1.1: Rehackable components for writing buildbots and test harnesses.

Safe HaskellSafe
LanguageHaskell98

BuildBox.Control.Cron

Description

A simple 'cron' loop. Used for running commands according to a given schedule.

Synopsis

Documentation

cronLoop :: Schedule (Build ()) -> Build () Source #

Given a schedule of commands, run them when their time is due. Only one command is run at a time. If several commands could be started at a specific moment, then we take the one with the earliest potential start time. If any command throws an error in the Build monad then the whole loop does.