✌️
This commit is contained in:
parent
ce4fb49d4c
commit
f778696a76
@ -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) {
|
export function createHttp(data: any) {
|
||||||
return queue
|
return queue
|
||||||
.create('http', data)
|
.create('http', data)
|
||||||
|
Loading…
Reference in New Issue
Block a user