1
0
Fork 0
mirror of synced 2024-07-12 18:05:55 +12:00

Revert changes

This commit is contained in:
Matej Baco 2022-11-23 09:43:30 +01:00
parent 089a1b295c
commit 6db93b6dfb

View file

@ -84,7 +84,7 @@ Server::setResource('execute', function () {
'functionId' => $functionId, 'functionId' => $functionId,
'deploymentId' => $deploymentId, 'deploymentId' => $deploymentId,
'trigger' => $trigger, 'trigger' => $trigger,
'status' => 'processing', 'status' => 'waiting',
'statusCode' => 0, 'statusCode' => 0,
'response' => '', 'response' => '',
'stderr' => '', '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) { $vars = array_reduce($function->getAttribute('vars', []), function (array $carry, Document $var) {
$carry[$var->getAttribute('key')] = $var->getAttribute('value'); $carry[$var->getAttribute('key')] = $var->getAttribute('value');
return $carry; return $carry;