mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Fix specs with new env vars
This commit is contained in:
parent
fd35043dd7
commit
9bab764378
2 changed files with 4 additions and 4 deletions
|
|
@ -63,8 +63,8 @@ class XList extends Base
|
|||
$spec['enabled'] = in_array($spec['slug'], $plan['runtimeSpecifications']);
|
||||
}
|
||||
|
||||
$maxCpus = System::getEnv('_APP_FUNCTIONS_CPUS', 0);
|
||||
$maxMemory = System::getEnv('_APP_FUNCTIONS_MEMORY', 0);
|
||||
$maxCpus = System::getEnv('_APP_COMPUTE_CPUS', 0);
|
||||
$maxMemory = System::getEnv('_APP_COMPUTE_MEMORY', 0);
|
||||
|
||||
// Only add specs that are within the limits set by environment variables
|
||||
// Treat 0 as no limit
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ class XList extends Base
|
|||
$spec['enabled'] = in_array($spec['slug'], $plan['runtimeSpecifications']);
|
||||
}
|
||||
|
||||
$maxCpus = System::getEnv('_APP_FUNCTIONS_CPUS', 0);
|
||||
$maxMemory = System::getEnv('_APP_FUNCTIONS_MEMORY', 0);
|
||||
$maxCpus = System::getEnv('_APP_COMPUTE_CPUS', 0);
|
||||
$maxMemory = System::getEnv('_APP_COMPUTE_MEMORY', 0);
|
||||
|
||||
// Only add specs that are within the limits set by environment variables
|
||||
// Treat 0 as no limit
|
||||
|
|
|
|||
Loading…
Reference in a new issue