- Executor now loads runtimes from php-runtimes package - Executor now handles timeouts correctly - Executor can now shutdown and remove containers before shutting down itself preventing a `docker-compose stop` failure due to active network endpoints. - Fixed a issue with JWT's not working - Improved general executor reliability - Tests now pass!
15 lines
No EOL
337 B
PHP
15 lines
No EOL
337 B
PHP
<?php
|
|
|
|
use Utopia\App;
|
|
use Appwrite\Runtimes\Runtimes;
|
|
|
|
/**
|
|
* List of Appwrite Cloud Functions supported runtimes
|
|
*/
|
|
$runtimes = new Runtimes();
|
|
|
|
$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));
|
|
|
|
$runtimes = $runtimes->getAll(true, $allowList);
|
|
|
|
return $runtimes; |