Foreman Flacutono
Complains loudly about orphans.
This library is useful when you are trying to find out the cause in a series of
unfortunate events.
You use it by creating a job, and then at some point in the future, marking
that job as complete (or possibly failed).
Every 3 seconds, Foreman Flacutono will let you know which jobs are currently
running and how long they have been running for.
This library was invaluable in solving the mysterious case of the infinitely
hanging AVA tests.
Todo
- Hook into the Bluebird promise monitoring events
- Use
setTimeout
so that if all jobs are completed there are no timers left
Installation
$ yarn add @mishguru/flacutono
Usage
import newJob from '@mishguru/flacutono'
const job = new Job('start chainsaw')
startChainsaw().then(() => {
job.complete()
})
newJob(name)
Create a new job
job.complete()
Mark that job as completed
job.fail()
Mark that job as failed
job.update(message)
Update the job with it's current progress.
![](./the_miserable_mill.jpg)