[openstreetmap/openstreetmap-website] Discard jobs when then encounter a deserialization error (PR #4323)

Andy Allan notifications at github.com
Wed Jul 15 09:56:51 UTC 2026


gravitystorm left a comment (openstreetmap/openstreetmap-website#4323)

Good news on this topic. One of the 37Signals developers came across the same issue of discarding legitimate jobs during networking blips, and found my post on the rails forum mentioned above. They've worked to get this fixed in rails, and https://github.com/rails/rails/pull/57742 has recently been merged so the fix will be in the next release.

At that point, we can use the following:

```diff
- discard_on ActiveJob::DeserializationError
+ discard_on ActiveJob::DeserializationError::RecordNotFound
```
... and that will work as intended, without any of the nasty side effects. 

In the meantime, I'll mark this as draft and awaiting upstream.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4323#issuecomment-4979279938
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4323/c4979279938 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260715/22af24cd/attachment-0001.htm>


More information about the rails-dev mailing list