mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Remove heartbeat
This commit is contained in:
parent
f0ea206f29
commit
620266d9d6
1 changed files with 0 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue