Supply autorestart to executor
This commit is contained in:
parent
877a6a3f54
commit
bce06a6178
3 changed files with 4 additions and 4 deletions
|
@ -787,7 +787,7 @@ $image = $this->getParam('image', '');
|
||||||
<<: *x-logging
|
<<: *x-logging
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stop_signal: SIGINT
|
stop_signal: SIGINT
|
||||||
image: openruntimes/executor:0.6.2
|
image: openruntimes/executor:0.6.5
|
||||||
networks:
|
networks:
|
||||||
- appwrite
|
- appwrite
|
||||||
- runtimes
|
- runtimes
|
||||||
|
|
|
@ -873,7 +873,7 @@ services:
|
||||||
hostname: exc1
|
hostname: exc1
|
||||||
<<: *x-logging
|
<<: *x-logging
|
||||||
stop_signal: SIGINT
|
stop_signal: SIGINT
|
||||||
image: openruntimes/executor:0.6.2
|
image: openruntimes/executor:0.6.5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- appwrite
|
- appwrite
|
||||||
|
|
|
@ -194,8 +194,7 @@ class Executor
|
||||||
}
|
}
|
||||||
|
|
||||||
$runtimeId = "$projectId-$deploymentId";
|
$runtimeId = "$projectId-$deploymentId";
|
||||||
$route = '/runtimes/' . $runtimeId . '/execution';
|
$route = '/runtimes/' . $runtimeId . '/executions';
|
||||||
|
|
||||||
|
|
||||||
// Remove after migration
|
// Remove after migration
|
||||||
if ($version == 'v3') {
|
if ($version == 'v3') {
|
||||||
|
@ -217,6 +216,7 @@ class Executor
|
||||||
'version' => $version,
|
'version' => $version,
|
||||||
'runtimeEntrypoint' => $runtimeEntrypoint,
|
'runtimeEntrypoint' => $runtimeEntrypoint,
|
||||||
'logging' => $logging,
|
'logging' => $logging,
|
||||||
|
'restartPolicy' => 'always' // Once utopia/orchestration has it, use DockerAPI::ALWAYS (0.13+)
|
||||||
];
|
];
|
||||||
|
|
||||||
if(!empty($body)) {
|
if(!empty($body)) {
|
||||||
|
|
Loading…
Reference in a new issue