Fix failing executions
This commit is contained in:
parent
5f87ef3074
commit
04f3d81ab8
4 changed files with 4 additions and 4 deletions
|
@ -1416,7 +1416,7 @@ App::post('/v1/functions/:functionId/executions')
|
|||
path: $path,
|
||||
method: $method,
|
||||
headers: $headers,
|
||||
startCommands: [
|
||||
commands: [
|
||||
'sh', '-c',
|
||||
'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '" &>/dev/null &'
|
||||
]
|
||||
|
|
|
@ -276,7 +276,7 @@ class BuildsV1 extends Worker
|
|||
entrypoint: $deployment->getAttribute('entrypoint'),
|
||||
destination: APP_STORAGE_BUILDS . "/app-{$project->getId()}",
|
||||
variables: $vars,
|
||||
startCommands: [
|
||||
commands: [
|
||||
'sh', '-c',
|
||||
'tar -zxf /tmp/code.tar.gz -C /mnt/code && helpers/build.sh "' . $command . '"'
|
||||
],
|
||||
|
|
|
@ -182,7 +182,7 @@ Server::setResource('execute', function () {
|
|||
path: $path,
|
||||
method: $method,
|
||||
headers: $headers,
|
||||
startCommands: [
|
||||
commands: [
|
||||
'sh', '-c',
|
||||
'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '" &>/dev/null &'
|
||||
]
|
||||
|
|
|
@ -715,7 +715,7 @@ services:
|
|||
hostname: exc1
|
||||
<<: *x-logging
|
||||
stop_signal: SIGINT
|
||||
image: meldiron/executor:0.3.0
|
||||
image: meldiron/executor:0.3.1
|
||||
networks:
|
||||
- appwrite
|
||||
- runtimes
|
||||
|
|
Loading…
Reference in a new issue