Skip to content

unable to retry on SolidQueue::ProcessExitError #313

@InteNs

Description

@InteNs

hello again!

After updating to V0.6 we naturally started getting failed jobs with SolidQueue::ProcessExitError as the error causing the job to fail.

This looked like a perfect candidate of an exception that we should always retry so i tried adding the following to ApplicationJob:

retry_on SolidQueue::ProcessExitError, wait: :polynomially_longer, attempts: 5

unfortunately it seems that this error class is not known to the application:

app/jobs/application_job.rb:16:in `<class:ApplicationJob>': uninitialized constant SolidQueue::ProcessExitError (NameError)

           SolidQueue::ProcessExitError,
                     ^^^^^^^^^^^^^^^^^^
Did you mean?  SolidQueue::Processes
	from app/jobs/application_job.rb:1:in `<top (required)>'

any ideas as to why this class is not loaded in the rails app?

maybe because the supervisor is loaded in another process (docker container in my case) and not the server process where jobs are actually scheduled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions