steeloverseer-2.0.1.0: A file watcher and development tool.

Safe HaskellSafe
LanguageHaskell2010

Sos.Job

Synopsis

Documentation

data Job Source #

A Job is an interruptible list of shell commands to run.

runJob :: Job -> IO JobResult Source #

Run a Job's list of shell commands sequentially. If a command returns ExitFailure, or an exception is thrown, don't run the rest (but also don't propagate the exception). Return whether or not all commands completed successfully.

unrestartJob :: Job -> STM () Source #

Clear any previous restart "ping"s that were sent to this job while it was sitting in the job queue (not at the front).

shouldRestartJob :: Job -> STM () Source #

An STM action that returns when this job should be restarted, and retries otherwise.