Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worker Cache does not get updated if worker crashes #113

Open
bendavies opened this issue Nov 13, 2024 · 5 comments
Open

Worker Cache does not get updated if worker crashes #113

bendavies opened this issue Nov 13, 2024 · 5 comments

Comments

@bendavies
Copy link

bendavies commented Nov 13, 2024

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

@kbond
Copy link
Member

kbond commented Nov 14, 2024

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 💡

@kbond
Copy link
Member

kbond commented Nov 14, 2024

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...

@kbond
Copy link
Member

kbond commented Nov 23, 2024

I just remembered this ttl can be configured.

@bendavies
Copy link
Author

👍

@bendavies bendavies reopened this Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants