@mishguru/flacutono
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

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()

Readme

Keywords

none

Package Sidebar

Install

npm i @mishguru/flacutono

Weekly Downloads

24

Version

8.0.0

License

MIT

Unpacked Size

652 kB

Total Files

15

Last publish

Collaborators

  • alexp643
  • mishbuild
  • jladuval
  • ashokfernandez
  • stayradiated
  • kmmontzka