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

Beaneater is eating exceptions #23

Closed
kaspergrubbe opened this issue May 19, 2013 · 1 comment
Closed

Beaneater is eating exceptions #23

kaspergrubbe opened this issue May 19, 2013 · 1 comment

Comments

@kaspergrubbe
Copy link

I have a simple worker like this:

require 'subexec'
require 'beaneater'

@beanstalk = Beaneater::Pool.new(['localhost:11300'])

@beanstalk.jobs.register('do.job') do |job|
  puts "Error out!"
  STDOUT.flush
  sleep 3
  raise "errors?"
end

@beanstalk.jobs.process!

And this Procfile:

beanstalkd:  beanstalkd -p 11300
worker_1:   bundle exec ruby lib/project/beanstalk_worker.rb
worker_2:   bundle exec ruby lib/project/beanstalk_worker.rb
[project (features/beanstalk_queue)]=> foreman start
15:08:31 beanstalkd.1 | started with pid 15270
15:08:31 worker_1.1  | started with pid 15271
15:08:31 worker_2.1  | started with pid 15272
15:08:35 worker_1.1  | Error out!
15:08:36 worker_2.1  | Error out!

Is it intentional that the workers don't throw the exceptions or at least notify about them?

@nesquena
Copy link
Member

Sorry the delayed response, this should be fixed in 0.3.1 of beaneater, let me know if it isn't

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

No branches or pull requests

2 participants