Watchdog

class Watchdog(name: String, limitSeconds: Long, halt: (Int) -> Unit = Runtime.getRuntime()::halt)

A step's watchdog: unless cancelled within limitSeconds (limitOf a step's own length), it says which step (name) printed nothing for that long and ends the program with EXIT_HUNG (halt), so a step that hangs (a store read that does not return, a worker that never stops) costs minutes and names itself, rather than the job's whole timeout and a log that ends at the step before.

Constructors

Link copied to clipboard
constructor(name: String, limitSeconds: Long, halt: (Int) -> Unit = Runtime.getRuntime()::halt)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun cancel()

The step ended: the watchdog stands down.