From e021b8795af734601bc06ec42560daa628597e7c Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 14 Apr 2021 12:40:55 +0200 Subject: [PATCH] fix: enable coroutine in functions worker --- app/workers/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/workers/functions.php b/app/workers/functions.php index 78c728f329..8f6afb6e2f 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -25,6 +25,8 @@ $environments = Config::getParam('environments'); */ $warmupStart = \microtime(true); +Runtime::setHookFlags(SWOOLE_HOOK_ALL); + Co\run(function() use ($environments) { // Warmup: make sure images are ready to run fast 🚀 Runtime::enableCoroutine(SWOOLE_HOOK_ALL);