Fix cold start freezes
This commit is contained in:
parent
5389afc80e
commit
5890647f24
2 changed files with 4 additions and 4 deletions
|
@ -1349,9 +1349,9 @@ 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 && helpers/start.sh "' . $command . '"'
|
||||
'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '" &>/dev/null &'
|
||||
]
|
||||
);
|
||||
|
||||
|
|
|
@ -182,9 +182,9 @@ Server::setResource('execute', function () {
|
|||
path: $path,
|
||||
method: $method,
|
||||
headers: $headers,
|
||||
startCommands: [
|
||||
commands: [
|
||||
'sh', '-c',
|
||||
'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && helpers/start.sh "' . $command . '"'
|
||||
'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '" &>/dev/null &'
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue