Skip to content
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

undefined local variable or method `env_name' for #<Rufus::Scheduler::EmScheduler:0x000000098bbdf8> #12

Closed
manuelmorales opened this issue Oct 3, 2012 · 2 comments · Fixed by #16

Comments

@manuelmorales
Copy link

I'm getting this every time an exception is thrown, which preventing Airbrake to reports the errors properly.

[2012-10-03 14:02:35 +0000] [2012-10-03 14:02:35 +0000] Started CheckRecurlyBypassTask[2012-10-03 14:02:35 +0000] breaking!
********************************************************************************
the exception handling method itself had an issue:
undefined local variable or method `env_name' for #<Rufus::Scheduler::EmScheduler:0x000000098bbdf8>
/data/cirrus/shared/bundled_gems/ruby/1.9.1/bundler/gems/scheduler_daemon-53d1062ed6a0/lib/scheduler_daemon/base.rb:97:in `handle_exception'
/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/rufus-scheduler-2.0.17/lib/rufus/sc/scheduler.rb:236:in `block in do_handle_exception'[2012-10-03 14:02:35 +0000] debug: no users with NIL account

/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/rufus-scheduler-2.0.17/lib/rufus/sc/scheduler.rb:229:in `each'

/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/rufus-scheduler-2.0.17/lib/rufus/sc/scheduler.rb:229:in `do_handle_exception'
/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/rufus-scheduler-2.0.17/lib/rufus/sc/jobs.rb:203:in `rescue in block in trigger'
/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/rufus-scheduler-2.0.17/lib/rufus/sc/jobs.rb:189:in `block in trigger'
/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/rufus-scheduler-2.0.17/lib/rufus/sc/scheduler.rb:555:in `call'
/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/rufus-scheduler-2.0.17/lib/rufus/sc/scheduler.rb:555:in `block in trigger_job'
/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:1037:in `call'
/data/cirrus/shared/bundled_gems/ruby/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:1037:in `block in spawn_threadpool'

Any suggestions? Thanks a lot!

@ssoroka
Copy link
Owner

ssoroka commented Mar 7, 2013

Sorry for the really late reply. I'm curious if $daemon_scheduler.env_name would fix the issue. Looks like a scope problem.

@manuelmorales
Copy link
Author

Thanks a lot for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants