mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
✌️
This commit is contained in:
parent
56864d8515
commit
bf7b214cf1
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue