chore: initialized specs in worker

This commit is contained in:
Chirag Aggarwal
2025-03-18 10:45:23 +00:00
parent 47917ab19f
commit cfec0a0ed3
+10
View File
@@ -412,6 +412,16 @@ Server::setResource('logError', function (Registry $register, Document $project)
};
}, ['register', 'project']);
Server::setResource('specifications', function () {
return Config::getParam('runtime-specifications', [
APP_FUNCTION_SPECIFICATION_DEFAULT => [
'slug ' => APP_FUNCTION_SPECIFICATION_DEFAULT,
'memory' => APP_FUNCTION_MEMORY_DEFAULT,
'cpus' => APP_FUNCTION_CPUS_DEFAULT
]
]);
});
$pools = $register->get('pools');
$platform = new Appwrite();
$args = $platform->getEnv('argv');