-
-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Description
NotImplementedError does not derive from StandardError. Per the documentation, exceptions that don't derive from StandardError are always retried, but if NotImplementedError is raised it's pretty much guaranteed that bad code was deployed and the job will never succeed.
We ran into this issue in our codebase, where a job was retried over 10,000 times before someone noticed and force-terminated the job via the UI. Also, the UI shows GoodJob::InterruptError as the exception, masking the actual NotImplementedError exception:
We've fixed this by adding discard_on NotImplementedError to the ApplicationJob parent class, but ideally I think GoodJob should know not to retry jobs on NotImplementedError exceptions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Inbox