BeforeMessengerDoctrinePingEvent
New in version 15.0 Feature: #110227 - Database connection maintenance for long-running Messenger workers
The PSR-14 event
\TYPO3\
is dispatched for each open database connection before a Messenger worker
pings it ahead of a message. A stale connection is closed and reconnected.
Call
skip to leave the connection untouched. See
Database connections of a worker.
Example
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API
-
final class
BeforeMessengerDoctrinePingEvent -
- Fully qualified name
-
\TYPO3\CMS\ Core\ Messenger\ Event\ Before Messenger Doctrine Ping Event
Dispatched by the DoctrinePingConnectionMiddleware before a database connection is pinged (and transparently reconnected) ahead of a worker handling a received message. Listeners may skip the ping for a specific connection, for example when a connection must not be touched between messages.