You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
What do you mean with this exactly? What do you do to run these jobs "by hand"?
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.
The text was updated successfully, but these errors were encountered: