Closed bogdan-dubyk closed 1 year ago
and I have pcntl
installed and enabled, when I run php -i | grep pcntl
it shows support => enabled
, and when add extension_loaded('pcntl')
it returns true
hmm, and honestly I'm not sure if async execution working for me in general
$startTime = microtime(true);
AsyncFacade::run(function(){sleep(1); return 1;});
AsyncFacade::run(function(){sleep(1); return 1;});
AsyncFacade::wait();
dd(microtime(true) - $startTime);
execution time is more than 3 seconds
I'm facing this problem too, do we have a solution for this?
Please try the latest version and make sure your PHP extensions have POSIX and PCNTL.
I have a task like this:
and in my code I'm running it like this:
and it does not work, I'm getting the message
success
in the logs butoutput
is null, and nothing is inserted into the database. What I'm doing wrong???? Maybe the issue is in mogo? I tried to use a function before instead of the job and it always failed with the error that mongo driver can't be serialized, with a job I do not see that error but also it's not working :)