From 6db93b6dfbe44730ca64b6ce6c82d0efb35f71ae Mon Sep 17 00:00:00 2001 From: Matej Baco Date: Wed, 23 Nov 2022 09:43:30 +0100 Subject: [PATCH] Revert changes --- app/workers/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/workers/functions.php b/app/workers/functions.php index 56baaf9d1e..2333cb315e 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -84,7 +84,7 @@ Server::setResource('execute', function () { 'functionId' => $functionId, 'deploymentId' => $deploymentId, 'trigger' => $trigger, - 'status' => 'processing', + 'status' => 'waiting', 'statusCode' => 0, 'response' => '', 'stderr' => '', @@ -99,6 +99,9 @@ Server::setResource('execute', function () { } } + $execution->setAttribute('status', 'processing'); + $execution = $dbForProject->updateDocument('executions', $executionId, $execution); + $vars = array_reduce($function->getAttribute('vars', []), function (array $carry, Document $var) { $carry[$var->getAttribute('key')] = $var->getAttribute('value'); return $carry;