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
Swoole's taskWaitMulti omits returning results, tasks of which have timed out.
Check the information here: swoole/swoole-src#4423
Then a chunk of code in concurrently method causes an ErrorException (undefined array key x) and technically crashes the whole result fetching process.
foreach ($tasks as $key => $task) {
if ($results[$i] instanceof TaskExceptionResult) { // ErrorException Undefined array key
throw $results[$i]->getOriginal();
}
Steps To Reproduce:
Queue a set of tasks with different execution times in such a way, that at least one of them times out.
Not having enough workers could be a reason for timeout.
Resolution suggestion:
Return check that the key exists and if not, assign false as a result array element.
The text was updated successfully, but these errors were encountered:
Description:
Swoole's taskWaitMulti omits returning results, tasks of which have timed out.
Check the information here: swoole/swoole-src#4423
Then a chunk of code in
concurrently
method causes anErrorException (undefined array key x)
and technically crashes the whole result fetching process.https://github.com/laravel/octane/blob/1.x/src/Swoole/SwooleTaskDispatcher.php#L46
Steps To Reproduce:
Queue a set of tasks with different execution times in such a way, that at least one of them times out.
Not having enough workers could be a reason for timeout.
Resolution suggestion:
Return check that the key exists and if not, assign
false
as a result array element.The text was updated successfully, but these errors were encountered: