Remove heartbeat

This commit is contained in:
Jake Barnby 2025-06-25 16:40:02 -04:00
parent f0ea206f29
commit 620266d9d6
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -21,8 +21,6 @@ use Utopia\Queue\Message;
class Databases extends Action
{
private ?int $heartbeatId = null;
public static function getName(): string
{
return 'databases';
@ -42,18 +40,6 @@ class Databases extends Action
->inject('queueForRealtime')
->inject('log')
->callback($this->action(...));
$this->heartbeatId = Timer::tick(10_000, function () {
Console::info('Databases worker heartbeat');
});
}
public function __destruct()
{
if ($this->heartbeatId) {
Timer::clear($this->heartbeatId);
$this->heartbeatId = null;
}
}
/**