1
0
Fork 0
mirror of synced 2024-04-26 09:02:18 +12:00

adjust settings to work dart env in travis and low budget

This commit is contained in:
Torsten Dittmann 2021-01-27 19:35:36 +01:00
parent d184e0eae8
commit f77c708c72
3 changed files with 2 additions and 6 deletions

2
.env
View file

@ -32,7 +32,7 @@ _APP_STORAGE_LIMIT=10000000
_APP_FUNCTIONS_TIMEOUT=900
_APP_FUNCTIONS_CONTAINERS=10
_APP_FUNCTIONS_CPUS=1
_APP_FUNCTIONS_MEMORY=128
_APP_FUNCTIONS_MEMORY=256
_APP_FUNCTIONS_MEMORY_SWAP=256
_APP_MAINTENANCE_INTERVAL=86400
_APP_MAINTENANCE_RETENTION_EXECUTION=1209600

View file

@ -391,7 +391,7 @@ class FunctionsV1
" -d".
" --entrypoint=\"\"".
" --cpus=".App::getEnv('_APP_FUNCTIONS_CPUS', '1').
" --memory=".App::getEnv('_APP_FUNCTIONS_MEMORY', '128')."m".
" --memory=".App::getEnv('_APP_FUNCTIONS_MEMORY', '256')."m".
" --memory-swap=".App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '256')."m".
" --name={$container}".
" --label appwrite-type=function".

View file

@ -643,10 +643,6 @@ class FunctionsCustomServerTest extends Scope
$executionId = $execution['body']['$id'] ?? '';
$this->assertEquals(201, $execution['headers']['status-code']);
sleep(30);
fwrite(STDERR, ".");
sleep(30);
$executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],