1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00
appwrite/app/config/runtimes.php
Bradley Schofield bca326dc8d Improvements to executor
- 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!
2021-09-06 01:37:20 +01:00

15 lines
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;