Skip to content

Random occurences of "unitialized constant" errors #464

Closed
@mbajur

Description

@mbajur

Hello!
Since the very beginning of trying out solid_queue, I'm facing the same issue over and over again. There are two jobs in my app causing "Unitialized constant"exception. One of them is triggered by app and second one is defined as recurring task. From time to time, instead of run them, solid_queue raises uninitialized constant <module name> and the job is not being run. It's so random i can't really pinpoint what's so special about the jobs raising this because today it's one job and tomorrow that might be completely different one.

Natural place to start would be to check out what's special about the jobs that are failing but, as i mentioned, the choice of jobs failing is random and i can run them totally fine with <MyJob>.perform_now so they are fine i guess. It seems just like it's not anything with jobs but with solid_queue that randomly fails to autoload a constants for some reason. One more "predictable" way of causing that is to run scheduled jobs by hand - they will fail 90% of the time with unitialized constant error but 10% of cases will run just fine.

I don't even know what details to provide in here but let's start with that I'm on Rails 7.1.0 and solid_queue 1.0.2.

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