fix: task coroutine hooks

This commit is contained in:
Fabian Gruber
2025-05-21 16:22:06 +02:00
parent 341775de2e
commit b1c1769f8a
5 changed files with 14 additions and 15 deletions
+1 -2
View File
@@ -284,6 +284,5 @@ $cli
$cli->shutdown()->action(fn () => Timer::clearAll());
// Enable coroutines, but disable TCP hooks. These don't work until we use `\Utopia\Cache\Adapter\Pool` and `\Utopia\Database\Adapter\Pool`.
Runtime::enableCoroutine(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
run($cli->run(...));