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 crashes and keeps poison-pill-job in queue #1173

Open
fnordfish opened this issue Jun 27, 2022 · 0 comments
Open

Worker crashes and keeps poison-pill-job in queue #1173

fnordfish opened this issue Jun 27, 2022 · 0 comments

Comments

@fnordfish
Copy link

When a Job raises an exception with a non default encoded message string, Delayed Job crashes with Encoding::CompatibilityError.
Demo with stack trace: https://github.com/fnordfish/activejob-poison-pill-demo

When using SQLite as storage and a Job changes one of it's arguments to something incompatible with SQLite, it will crash with Encoding::UndefinedConversionError.
Demo with stack trace: https://github.com/fnordfish/activejob-poison-pill-demo/tree/sqlite-writeback

In both cases, the job stays in the queue and when restarting the worker, it will immediately retry that job, causing it to crash again.

I was originally investigating this as rails/rails#45418.
Maybe ref #1157.

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

1 participant