1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 08:48:11 +09:00
This commit is contained in:
syuilo 2018-07-26 05:27:27 +09:00
parent ce4fb49d4c
commit f778696a76

View File

@ -12,6 +12,13 @@ const queue = createQueue({
}
});
process.once('SIGTERM', () => {
queue.shutdown(5000, (err: any) => {
console.log('Kue shutdown: ', err || '');
process.exit(0);
});
});
export function createHttp(data: any) {
return queue
.create('http', data)