diff --git a/app/workers/functions.php b/app/workers/functions.php index 1e7ed90936..f04062f5f3 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -14,7 +14,7 @@ use Utopia\Config\Config; require_once __DIR__.'/../init.php'; -Runtime::enableCoroutine(FALSE); +Runtime::enableCoroutine(SWOOLE_HOOK_ALL); Console::title('Functions V1 Worker'); Console::success(APP_NAME.' functions worker v1 has started'); @@ -64,6 +64,8 @@ $warmupTime = $warmupEnd - $warmupStart; Console::success('Finished warmup in '.$warmupTime.' seconds'); +Runtime::setHookFlags(0); + /** * List function servers */