Closed
Description
Description
At the moment you don't receive any transporter name when a worker is started, running, message failed or stopped which would be handy when you want to monitor if a messenger is running and want to do some action if the messenger is closed for some reason.
Example
Please add the receiver names to the events for example for the following:
- Symfony\Component\Messenger\Event\WorkerMessageFailedEvent
- Symfony\Component\Messenger\Event\WorkerRunningEvent
- Symfony\Component\Messenger\Event\WorkerStartedEvent
- Symfony\Component\Messenger\Event\WorkerStoppedEvent
vendor/symfony/messenger/Worker.php#63
$this->dispatchEvent(new WorkerStartedEvent($this));
$this->dispatchEvent(new WorkerStartedEvent($this, $this->receivers));
vendor/symfony/messenger/Worker.php#78
$this->dispatchEvent(new WorkerRunningEvent($this, false));
$this->dispatchEvent(new WorkerRunningEvent($this, false, $transportName));
vendor/symfony/messenger/Worker.php#94
$this->dispatchEvent(new WorkerRunningEvent($this, true));
$this->dispatchEvent(new WorkerRunningEvent($this, true, $this->receivers));
vendor/symfony/messenger/Worker.php#100
$this->dispatchEvent(new WorkerStoppedEvent($this));
$this->dispatchEvent(new WorkerStoppedEvent($this, $this->receivers));