laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.75k stars 291 forks source link

Running empty tasks throws TaskTimeoutException #769

Closed zhiyingxu closed 9 months ago

zhiyingxu commented 9 months ago

Octane Version

2.1.2

Laravel Version

10.34.2

PHP Version

8.3.0

What server type are you using?

Swoole

Server Version

5.1.1

Database Driver & Version

No response

Description

When running empty tasks, Laravel will throw Laravel\Octane\Exceptions\TaskTimeoutException.

Steps To Reproduce

use Laravel\Octane\Facades\Octane;

$tasks = [];

Octane::concurrently($tasks);
screenshot
driesvints commented 9 months ago

You can add a simple if statement around the concurrently task to prevent this.