1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

Fix cold start freezes

This commit is contained in:
Matej Bačo 2023-03-29 14:41:15 +02:00
parent 5389afc80e
commit 5890647f24
2 changed files with 4 additions and 4 deletions

View file

@ -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 &'
]
);

View file

@ -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 &'
]
);