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

PREVIOUS NEXT
Code Example
Php :: laravel validation allow empty array 
Php :: in loop how add string by comma in php 
Php :: composer larave install version 
Php :: concat and search in laravel eloquent 
Php :: php artisan up 
Php :: how to delete all data from table in php 
Php :: count() parameter must be an array or an object that implements countable laravel 
Php :: php capitalize each word 
Php :: convert string to lowercase in php 
Php :: WP_DEBUG enable 
Php :: join cakphp 
Php :: laravel eloquent get last record 
Php :: laravel get auth user in constructor 
Php :: php mysql if exists 
Php :: php check for empty string 
Php :: php find substring 
Php :: General error: 1709 Index column size too large. The maximum column size is 767 bytes. 
Php :: wordpress get post slug 
Php :: if else in php html 
Php :: error repoerting in php 
Php :: php for loop 
Php :: check if the form is submitted php 
Php :: larevel version artisan 
Php :: sanitize_text_field 
Php :: artisan commands in route 
Php :: add user meta 
Php :: laravel route group name 
Php :: delete_user hook in wordpress 
Php :: get taxonomies for custom post type 
Php :: php foreach count rows 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =