messenger-monitor-bundle
messenger-monitor-bundle copied to clipboard
Worker Cache does not get updated if worker crashes
Hi,
Unsure if this is solvable but the worker cache becomes incorrect/stale if a worker crashes. The Symfony Worker doesn't dispatch an event for this.
Can you think of a way to solve this?
Thanks
The cache has a 5 minute TTL so it should drop eventually, right?
I'm not sure how else we can drop it.
Let's keep this open in case one of us gets an idea 💡
ah right, but it's 1 hour not 5 minutes, right? https://github.com/zenstruck/messenger-monitor-bundle/blob/e6a804a80b17388111f9e52eba09d9dfd9743839/src/DependencyInjection/ZenstruckMessengerMonitorExtension.php#L72C44-L72C48
Ah yes, you're right. I don't think we want to reduce it too much as there could be long running jobs that could trigger cause the worker to be dropped. An hour seems long though...
I just remembered this ttl can be configured.
👍