-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
21 lines (20 loc) · 705 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
let BuildHivSummary = require('./build-hiv-summary');
let ScheduleHivSummary = require('./schedule-hiv-summary');
let Moment = require('moment');
try {
let buildJob = new BuildHivSummary();
let startedAt = Moment();
console.log('Starting at:', startedAt.toLocaleString())
buildJob.runJob().then(() => {
console.log('Finshed all jobs.');
let endedAt = Moment();
let diff = endedAt.diff(startedAt, 'seconds');
console.log('Took ' + diff + ' seconds.');
}).catch((err) => {
console.error('error running hiv summary job');
throw err;
});
} catch (error) {
console.error('Error running pipeline', error);
}
process.stdin.resume();