lib-init

1.0.0 • Public • Published

init lib

job init server

install

npm install --save lib-init

usage

queue a series of tasks

Spawn a series of tasks executed sequentially. The stdout/stderr of each child is wired together in job.stdout and job.stderr respectively.

var Init = require('lib-init')();
var init = Init.New();
 
var job  = init.queue('myTask', {
  tasks: [task0, task1, task2]
})
 
job.stdout.pipe(process.stdout);

abort a job

var Init = require('lib-init')();
var init = Init.New();
 
init.queue('myTask', {
  tasks: [task0, task1, task2]
});
 
init.abortJob('myTask');

Readme

Keywords

none

Package Sidebar

Install

npm i lib-init

Weekly Downloads

24

Version

1.0.0

License

MIT

Last publish

Collaborators

  • groundwater