BeforeMessengerDoctrinePingEvent 

The PSR-14 event \TYPO3\CMS\Core\Messenger\Event\BeforeMessengerDoctrinePingEvent 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 

API 

final class BeforeMessengerDoctrinePingEvent
Fully qualified name
\TYPO3\CMS\Core\Messenger\Event\BeforeMessengerDoctrinePingEvent

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.

getConnectionName()
Returns
string
skip()
shouldSkip()
Returns
bool
isPropagationStopped()
Returns
bool