Merge branch '1.8.x' into feat-new-file-params

This commit is contained in:
Matej Bačo 2026-01-14 14:17:27 +01:00 committed by GitHub
commit e76ed98590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -462,7 +462,11 @@ class Functions extends Action
if ($execution->getAttribute('status') !== 'processing') {
$execution->setAttribute('status', 'processing');
$execution = $dbForProject->updateDocument('executions', $executionId, $execution);
try {
$execution = $dbForProject->updateDocument('executions', $executionId, $execution);
} catch (\Throwable $e) {
$log->addExtra('updateError', $e->getMessage());
}
}
$durationStart = \microtime(true);
@ -605,6 +609,13 @@ class Functions extends Action
$error = $th->getMessage();
$errorCode = $th->getCode();
} finally {
/** Update execution status */
try {
$execution = $dbForProject->updateDocument('executions', $executionId, $execution);
} catch (\Throwable $e) {
$log->addExtra('updateError', $e->getMessage());
}
/** Trigger usage queue */
$queueForStatsUsage
->setProject($project)
@ -621,8 +632,6 @@ class Functions extends Action
;
}
$execution = $dbForProject->updateDocument('executions', $executionId, $execution);
$executionModel = new Execution();
$realtimeExecution = $executionModel->filter(new Document($execution->getArrayCopy()));
$realtimeExecution = $realtimeExecution->getArrayCopy(\array_keys($executionModel->getRules()));