@mishguru/flacutono

Server status monitor

Usage no npm install needed!

<script type="module">
  import mishguruFlacutono from 'https://cdn.skypack.dev/@mishguru/flacutono';
</script>

README

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

$ npm install --save @mishguru/flacutono

Usage

import Foreman from '@mishguru/flacutono'

const foreman = new Foreman()

const job = foreman.monitor({
  section: 'Lumbermill',
  name: 'debark-1042'
})

...

job.resolve()