-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Community Support welcomeShould be supported by the communityShould be supported by the community
Description
Hello,
In my Sentry I found such an error: Uncaught Error: Call to a member function getPid() on null
from:
Elements\Bundle\ProcessManagerBundle\Model\MonitoringItem::isAlive
code:
public function isAlive(): bool
{
if ($this->isMessengerPending()) {
return true;
}
if ($this->getPid()) {
$messageBus = \Pimcore::getContainer()->get('messenger.bus.pimcore-core');
$message = new CheckCommandAliveMessage($this->getId());
$messageBus->dispatch($message);
return (bool)self::getById($this->getId())->getPid();
} else {
return false;
}
}
Metadata
Metadata
Assignees
Labels
Community Support welcomeShould be supported by the communityShould be supported by the community