From 0e5f9b138ab41b4231b4a8a1b2eb30afe8683a2b Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 17 Jan 2022 10:18:31 +0000 Subject: [PATCH] Update executor.php --- app/executor.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/executor.php b/app/executor.php index 6ed651554d..6e5e945f05 100644 --- a/app/executor.php +++ b/app/executor.php @@ -61,9 +61,13 @@ Co\run(function () use ($runtimes, $orchestration) { } }); -/** - * List function servers - */ +$activeFunctions = new Swoole\Table(1024); +$activeFunctions->column('id', Swoole\Table::TYPE_STRING, 512); +$activeFunctions->column('name', Swoole\Table::TYPE_STRING, 512); +$activeFunctions->column('status', Swoole\Table::TYPE_STRING, 512); +$activeFunctions->column('key', Swoole\Table::TYPE_STRING, 4096); +$activeFunctions->create(); + Co\run(function () use ($orchestration, $activeFunctions) { $executionStart = \microtime(true);