Merge pull request #9932 from appwrite/fix-disable-tcp-hook

Disable TCP hook on stats resources
This commit is contained in:
Jake Barnby 2025-05-29 12:54:51 +00:00 committed by GitHub
commit 7a34c7b8df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@ namespace Appwrite\Platform\Tasks;
use Appwrite\Event\StatsResources as EventStatsResources;
use Appwrite\Platform\Action;
use Swoole\Runtime;
use Utopia\CLI\Console;
use Utopia\Database\Database;
use Utopia\Database\DateTime;
@ -50,6 +51,8 @@ class StatsResources extends Action
public function action(Database $dbForPlatform, callable $logError, EventStatsResources $queue): void
{
Runtime::enableCoroutine(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
$this->logError = $logError;
$this->dbForPlatform = $dbForPlatform;