Skip to content

Deprecate and drop :on_unhandled_error option #1706

@morgoth

Description

@morgoth

It is possible to set GoodJob.preserve_job_records = :on_unhandled_error so the jobs are persisted only when error occurs.

I find it buggy over time, as some of the jobs are preserved and some not.
On the development env it seems to work as intended, as all jobs without error are deleted, but on production-like systems, many jobs are not deleted.

Instead of figuring out why is that, I would recommend to deprecate that feature and later remove.

When it was introduced (yes that's me ;-) it was a solution for cleaning up.
But since now GJ deletes job periodically it doesn't really make sense any more.
Furthermore GJ has a rich "performance" tab and other statistics that are not fully used when using "on_unhandled_error" option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions