Supply autorestart to executor

This commit is contained in:
Matej Bačo
2024-08-03 09:14:19 +00:00
parent 877a6a3f54
commit bce06a6178
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -194,8 +194,7 @@ class Executor
}
$runtimeId = "$projectId-$deploymentId";
$route = '/runtimes/' . $runtimeId . '/execution';
$route = '/runtimes/' . $runtimeId . '/executions';
// Remove after migration
if ($version == 'v3') {
@@ -217,6 +216,7 @@ class Executor
'version' => $version,
'runtimeEntrypoint' => $runtimeEntrypoint,
'logging' => $logging,
'restartPolicy' => 'always' // Once utopia/orchestration has it, use DockerAPI::ALWAYS (0.13+)
];
if(!empty($body)) {