Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Comments

Projects
None yet
2 participants

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!

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.

@ssoroka ssoroka closed this in 4dae21f Mar 13, 2013

Thanks a lot for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment