Commit 558abf7
authored
fix(concurrency): skip Octane::concurrently when no tasks to prevent false TaskTimeoutException (#1071)
This patch prevents unnecessary calls to Octane::concurrently() when the $tasks array is empty.
Without this guard, Octane sometimes triggers a misleading
TaskTimeoutException: Task timed out after 30000 milliseconds — even when there are no actual tasks to run.
This happens because Octane initializes the task pool regardless of input size, and an empty collection causes its internal wait cycle to expire.
By returning an empty array early, we:
avoid wasting resources initializing a no-op concurrent pool;
prevent false timeouts and misleading error logs;
improve the reliability of concurrency handling for cases where dynamic task lists may be empty.1 parent c9ca504 commit 558abf7
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments