From b7833a862b13cf66ce4286f58254b0fb73987a3f Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 14 Apr 2021 17:56:15 +0200 Subject: [PATCH] fix: disable co-routine hooks --- app/workers/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */