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

Class errors during autoload swallowed #54

Open
dmvt opened this issue Apr 19, 2016 · 0 comments
Open

Class errors during autoload swallowed #54

dmvt opened this issue Apr 19, 2016 · 0 comments
Labels

Comments

@dmvt
Copy link
Contributor

dmvt commented Apr 19, 2016

Because of the autoload functionality, errors in classes get swallowed causing the worker to hang and the message to sit unacked.

reproduce as such:

# app/services/bad_apple.rb
class BadApple
  def incomplete_method_def
    {
  end
end
#app/consumers/sample_consumer.rb
class SampleConsumer
  include Emque::Consuming.consumer

  def message_handler(message)
    BadApple.new
  end
end
@dmvt dmvt added the bug label Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant