Closed
Description
Description
At the moment it does not look possible to have a custom $onHandledCallback
on the Worker
used by messenger:consume
command.
See ->
My use case is that I would like to reset
monolog buffered handler at this very moment to send my error logs in batch to Sentry.
I thought about using WorkerMessageFailedEvent
but then I would miss important logging messages such as :
Possible solution
Perhaps by replacing the callable with an interface that could be autowired in the command, not sure.