enable coroutines

This commit is contained in:
Chirag Aggarwal
2026-03-17 10:52:35 +05:30
parent d60858cd8f
commit c055c32371
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -67,6 +67,7 @@ $swooleAdapter = new HttpServer(
Constant::OPTION_TASK_WORKER_NUM => 1, // required for the task to fetch domains background
],
container: $container,
coroutines: true,
);
$container->set('container', fn () => fn () => $swooleAdapter->getContainer());
@@ -1203,6 +1203,8 @@ class Builds extends Action
protected function sendUsage(Document $resource, Document $deployment, Document $project, Context $usage, UsagePublisher $publisherForUsage): void
{
$spec = Config::getParam('specifications')[$resource->getAttribute('buildSpecification', APP_COMPUTE_SPECIFICATION_DEFAULT)];
$cpus = $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT;
$memory = $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT;
switch ($deployment->getAttribute('status')) {
case 'ready':