mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 08:17:32 -05:00 
			
		
		
		
	Add flag to disable internal queue
This commit is contained in:
		
							parent
							
								
									26fb1d09a5
								
							
						
					
					
						commit
						b780b636d6
					
				@ -68,7 +68,7 @@ class Kernel extends ConsoleKernel
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if(config('queue.default') == 'database' && Ninja::isSelfHost()) {
 | 
					        if(config('queue.default') == 'database' && Ninja::isSelfHost() && config('ninja.internal_queue_enabled')) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $schedule->command('queue:work')->everyMinute()->withoutOverlapping();
 | 
					            $schedule->command('queue:work')->everyMinute()->withoutOverlapping();
 | 
				
			||||||
            $schedule->command('queue:restart')->everyFiveMinutes()->withoutOverlapping(); 
 | 
					            $schedule->command('queue:restart')->everyFiveMinutes()->withoutOverlapping(); 
 | 
				
			||||||
 | 
				
			|||||||
@ -150,4 +150,5 @@ return [
 | 
				
			|||||||
    'ninja_stripe_key' => env('NINJA_STRIPE_KEY', null),
 | 
					    'ninja_stripe_key' => env('NINJA_STRIPE_KEY', null),
 | 
				
			||||||
    'ninja_stripe_publishable_key' => env('NINJA_PUBLISHABLE_KEY', null),
 | 
					    'ninja_stripe_publishable_key' => env('NINJA_PUBLISHABLE_KEY', null),
 | 
				
			||||||
    'pdf_generator' => env('PDF_GENERATOR', false),
 | 
					    'pdf_generator' => env('PDF_GENERATOR', false),
 | 
				
			||||||
 | 
					    'internal_queue_enabled' => env('INTERNAL_QUEUE_ENABLED', true),
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user