Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 433 Bytes

File metadata and controls

16 lines (12 loc) · 433 Bytes

Run artisan command via route

Route::get('/queue', function() {
         $output = [];
    \Artisan::call('queue:work --stop-when-empty', $output);
    
});

Add url to cornjob (cpanel)

 /usr/bin/curl --silent http://domain.com/queue >/dev/null 2>&1 

if Queue not stopping

 queue:work --stop-when-empty 

-stop-when-empty option ends the queue after processing all jobs