You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run schedule:run all scheduled jobs start executing one by one until indikator.news schedule command is executed which leaves the queue:work command running indefinitely preventing any following tasks from running.
I am not sure if this was caused because --daemon command is now deprecated but it prevents all other jobs from executing.
To get around the issue I have made the following change in Plugin.php but I am not sure if this is the appropriate way to fix it.
public function registerSchedule($schedule)
{
$memory = (int)Config::get('indikator.news::memory_limit');
$schedule->command('queue:work --daemon --queue=newsletter --memory=' . $memory)->everyMinute()->withoutOverlapping();
}
to this
public function registerSchedule($schedule)
{
$memory = (int)Config::get('indikator.news::memory_limit');
$schedule->command('queue:work --once --queue=newsletter --memory=' . $memory)->everyMinute()->withoutOverlapping();
}
The text was updated successfully, but these errors were encountered:
When I run schedule:run all scheduled jobs start executing one by one until indikator.news schedule command is executed which leaves the queue:work command running indefinitely preventing any following tasks from running.
I am not sure if this was caused because --daemon command is now deprecated but it prevents all other jobs from executing.
To get around the issue I have made the following change in Plugin.php but I am not sure if this is the appropriate way to fix it.
to this
The text was updated successfully, but these errors were encountered: