Usage
Before creating jobs, you need to initialize the job manager:
; let manager = 'http://0.0.0.0:3000' // Dray URL 'redis://127.0.0.1:6379' // Redis URL;
Fire and forget
let job = manager; job // Container to be run ; // Fire and forget!
Wait for result
let job = manager;job // Data passed to container ; // Container to be run// Fire and wait for promisejob;
Start compilation job
;let compilation = manager;compilation;compilation;compilation;compilation;
API Reference
Development
Releasing
- Prebuid
dist
directory usingnpm build
- Bump version with
npm version <major|minor|patch>
- Push the repo
- Publish on npm:
npm publish