mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Update functions.php
This commit is contained in:
parent
facb1ad174
commit
1574bfdc9a
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ App::get('/v1/functions/specifications')
|
||||||
foreach ($allRuntimeSpecs as $spec) {
|
foreach ($allRuntimeSpecs as $spec) {
|
||||||
$spec['enabled'] = true;
|
$spec['enabled'] = true;
|
||||||
|
|
||||||
$hooks->trigger('specificationsHandler', [$plan, &$spec]);
|
$spec = $hooks->trigger('specificationsHandler', [$plan, &$spec]) ?? $spec;
|
||||||
|
|
||||||
// Only add specs that are within the limits set by environment variables
|
// Only add specs that are within the limits set by environment variables
|
||||||
if ($spec['cpus'] <= System::getEnv('_APP_FUNCTIONS_CPUS', 1) && $spec['memory'] <= System::getEnv('_APP_FUNCTIONS_MEMORY', 512)) {
|
if ($spec['cpus'] <= System::getEnv('_APP_FUNCTIONS_CPUS', 1) && $spec['memory'] <= System::getEnv('_APP_FUNCTIONS_MEMORY', 512)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue