New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See ActiveSupport error after upgrading to 0.3.0: undefined local variable or method `__callbacks' for class ActiveSupport::CurrentAttributes #191
Comments
Hey @wheee, sorry for the delay! This one is quite strange, haven't seen any error like this before 🤔 |
Not the original submitter, but I just had this same issue happen to me, and (at least in my case) it was caused by spacing issues in the default: &default
dispatchers:
# dispatcher config here
workers:
# worker config here
development:
<<: *default
test:
<<: *default
production:
<<: *default (hard to see in the editor and very subtle). Ensuring two spaces preceded each |
FWIW I also get this happening from time to time, but my config file looks OK: default: &default
dispatchers:
- polling_interval: 1
batch_size: 500
recurring_tasks:
summarize_daily_entries_job:
class: SummarizeDailyEntriesJob
args: []
schedule: every hour
workers:
- queues: "default"
threads: 3
processes: 1
polling_interval: 0.1
- queues: "low"
threads: 1
processes: 1
polling_interval: 1
development:
<<: *default
test:
<<: *default
production:
<<: *default EDIT: I'm using Overmind for process management, Mac OS Sonomo 14.4.1. |
Sorry @rosa, have been busy myself as well. I'll definitely try over the weekend to reproduce it. But given what @bananastalktome said, it sounds about right. When I tried to upgrade the first time, I definitely added some recurring_tasks and perhaps I added an extra space somewhere (usually my IDE would trim it, but perhaps it's not doing it for yml files). Will report back later, and thanks @bananastalktome! |
I haven't had time to really investigate this, but I've had the same issue, and managed to narrow down the cause in my app. I had a Rake wrapper task that check/ensures that regular tasks are running when the worker starts. Simplified example: namespace :job_wrapper do
desc 'Start SolidQueue and ensure regular tasks are kicked off'
task start_with_regulars: :environment do
# Schedule MyJob if not already scheduled
unless Rails.cache.read(MyJob::KEY)
MyJob.perform_now
end
# Start the SolidQueue
Rake::Task['solid_queue:start'].invoke
end
end I narrowed down the issue to the |
Hi there,
Note that I have SolidQueue already installed in my project, so upgraded to 0.3.0 which installed fugit.
After running the migrations to add the new table/indices, starting up my foreman resulted in the following error:
In terms of impact, my regular jobs are still being processed, but recurring jobs don't seem to be work, but haven't dug in too deep.
Would appreciate some support on this, thanks!
The text was updated successfully, but these errors were encountered: