josegonzalez / cakephp-queuesadilla

CakePHP3: easily run background jobs on various message backends
https://cakephp-queuesadilla.readthedocs.org/en/latest/
MIT License
34 stars 14 forks source link

Call to undefined function josegonzalez\Queuesadilla\Worker\pcntl_signal() #32

Closed FinlayDaG33k closed 4 years ago

FinlayDaG33k commented 5 years ago

Hii there,

I'm currently trying to setup this plugin, but I'm getting the error in the title when I try to run the cake queuesadilla command.
I have tried following the guide here.

Any clue how to solve it?

UPDATE: forgot the stacktrace:

Stack Trace:
#0 /var/www/vendor/josegonzalez/cakephp-queuesadilla/src/Shell/QueuesadillaShell.php(58): josegonzalez\Queuesadilla\Worker\SequentialWorker->__construct(Object(josegonzalez\Queuesadilla\Engine\MysqlEngine), Object(Cake\Log\Engine\ConsoleLog), Array)
#1 /var/www/vendor/josegonzalez/cakephp-queuesadilla/src/Shell/QueuesadillaShell.php(21): Josegonzalez\CakeQueuesadilla\Shell\QueuesadillaShell->getWorker(Object(josegonzalez\Queuesadilla\Engine\MysqlEngine), Object(Cake\Log\Engine\ConsoleLog))
#2 /var/www/vendor/cakephp/cakephp/src/Console/Shell.php(532): Josegonzalez\CakeQueuesadilla\Shell\QueuesadillaShell->main()
#3 /var/www/vendor/cakephp/cakephp/src/Console/CommandRunner.php(371): Cake\Console\Shell->runCommand(Array, true)
#4 /var/www/vendor/cakephp/cakephp/src/Console/CommandRunner.php(166): Cake\Console\CommandRunner->runShell(Object(Josegonzalez\CakeQueuesadilla\Shell\QueuesadillaShell), Array)
#5 /var/www/bin/cake.php(12): Cake\Console\CommandRunner->run(Array)
#6 {main}
cleptric commented 5 years ago

You have to install the php pcntl extension

FinlayDaG33k commented 5 years ago

Oof, I thought I already done that... but apparently I didn't... Will report back!

josegonzalez commented 5 years ago

Should that be in the composer.json somehow?

cleptric commented 5 years ago

@josegonzalez Yes, this would make it more obvious for sure :)

josegonzalez commented 5 years ago

@cleptric PR welcome!