spatie / async

Easily run code asynchronously

Home Page:https://spatie.be/en/opensource/php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pool always timing out

SparkyRih opened this issue · comments

Even when I do this simple thing, the pool always times out:

$pool->add(function () use ($array, $feed) {
    return 1;
})->catch(function ($ex) {
    throw new \Exception($ex);
})->timeout(function() {
    throw new \Exception("Pool timed out..."); // I always end up here...
});

I've tested on a local Red Hat VM, and on a staging server. Both have the same issue.
How can I debug this?

For context, I'm trying to use this package in CakePHP 3.10.0 using PHP 7.3. The timeout is set to 15 seconds (the process should take about 5 seconds).

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.