mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	✌️
This commit is contained in:
		
							parent
							
								
									ce4fb49d4c
								
							
						
					
					
						commit
						f778696a76
					
				
					 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) {
 | 
			
		||||
	return queue
 | 
			
		||||
		.create('http', data)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue