Call to undefined function Laravel\Horizon\Console\pcntl_async_signals() (Laravel Horizon)

210 views Asked by At

I have installed laravel horizon using xampp having apache server. Here i need to use queue with redis so i have checked and installed wsl along with redis and run redis from wsl platform

insttalled Predis and configure it accroiding to laravel guideline Laravel Horizon Screen Shot

when i run php artisan horizon getting the below error Call to undefined function Laravel\Horizon\Console\pcntl_async_signals()

at vendor\laravel\horizon\src\Console\HorizonCommand.php:48 44▕ ProvisioningPlan::get(MasterSupervisor::name())->deploy($environment); 45▕ 46▕ $this->info('Horizon started successfully.'); 47▕ ➜ 48▕ pcntl_async_signals(true); 49▕ 50▕ pcntl_signal(SIGINT, function () use ($master) { 51▕ $this->line('Shutting down...'); 52▕

1

There are 1 answers

0
Olivier On

The pcntl_async_signals() function is part of the PCNTL extension, which is not supported on Windows (as mentioned here):

Note: This extension is not available on Windows platforms.