Skip to content

ActiveJob::Continuable jobs crash when active_job_report_on_retry_error is enabled #3116

Description

@solnic

On Rails 8.1+, jobs using ActiveJob::Continuable raise ArgumentError: expect the argument to be a Exception, got NilClass when config.rails.active_job_report_on_retry_error = true and the job is interrupted or resumes after an error.

Continuable resumes via retry_job without an error, and our enqueue_retry.active_job handler passes the missing error straight to capture_exception. The resumption is already enqueued at that point, so the current execution failing can lead to duplicate runs.

Activity

  1. linear-code commented on Oct 7, 2026

    @linear-code
  2. self-assigned this
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions