Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel queue work on shared hosting

// Set a schedule
$schedule->command('queue:work --stop-when-empty')->everyMinute()->withoutOverlapping();
// cron job
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Comment

running laravel queues in shared hosting

//In your Kernel.php Add the following

 $schedule->command('queue:work', [
   '--max-time' => 300
        ])->withoutOverlapping();

//Create a cron
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Comment

how to setup cron job for laravel queues on shared hosting

$schedule->command('queue:restart')
    ->everyFiveMinutes();

$schedule->command('queue:work --daemon')
    ->everyMinute()
    ->withoutOverlapping();
Comment

PREVIOUS NEXT
Code Example
Php :: laravel validation array input 
Php :: php calculate days of a month 
Php :: how to pass bearer token in swagger in laravel 
Php :: file upload in php mysql 
Php :: permutations php 
Php :: laravel has one 
Php :: laravel collection map 
Php :: json to php array 
Php :: convert php to python online 
Php :: echo php 
Php :: drupal 8 twig add id 
Php :: laravel global scope 
Php :: how to make zip in php by multiple files 
Php :: laravel migration update table column type 
Php :: unlink(p1): No such file or directory 
Php :: laravel db inserr 
Php :: bootstrap pagination laravel 
Php :: PHP filter_var() Function 
Php :: format date laravel timestamp view 
Php :: php is int 
Php :: find over array object php find 
Php :: laravel migration string length 
Php :: php example 
Php :: strtotime to date php 
Php :: cakephp get sql query string 
Php :: laravel webmix scss 
Php :: laravel append parameter to links 
Php :: array_filter first element php 
Php :: where in laravel 
Php :: The `php` command cannot be found. Please verify that PHP is installed, or set the `php.executables` setting. 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =