Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
connect(err => {
// throw if error
if (err) {
error('Fail Launching Worker', err);
throw err;
}
// TODO: worker job events
// start kue worker
start();
// start kue http & ui
listen();
debug('Finish Launching Worker');
});
start((err, { PORT }) => {
// throw if error
if (err) {
error('Fail Launching Http Server', err);
throw err;
}
debug(`Http Server Running At http://0.0.0.0:${PORT}`);
debug('Finish Launchin Http Server');
});