Giter Club home page Giter Club logo

amqp-client.rb's People

Contributors

carlhoerberg avatar dentarg avatar johanrhodin avatar mustardnoise avatar spuun avatar walro avatar weistrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

amqp-client.rb's Issues

CI fail on TruffleRuby and JRuby

CI has been unstable for TruffleRuby (and JRuby) since they were added, the tests doesn't complete. On CRuby, all tests complete in ~10s. Here's a recent example of TruffleRuby timing out: https://github.com/cloudamqp/amqp-client.rb/runs/4280214610?check_suite_focus=true#step:5:17

  1) Error:
HighLevelTest#test_it_can_reopen_channel_1_after_failed_publish:
TimeoutEveryTestCase::TestTimeout: timed out after 60 seconds
    /home/runner/work/amqp-client.rb/amqp-client.rb/lib/amqp/client.rb:88:in `stop'
    /home/runner/work/amqp-client.rb/amqp-client.rb/test/amqp/high_level_test.rb:82:in `test_it_can_reopen_channel_1_after_failed_publish'
    /home/runner/work/amqp-client.rb/amqp-client.rb/test/test_helper.rb:27:in `block (2 levels) in run'
    /home/runner/.rubies/truffleruby-21.3.0/lib/truffle/timeout.rb:163:in `timeout'
    /home/runner/work/amqp-client.rb/amqp-client.rb/test/test_helper.rb:21:in `block in run'

48 runs, 10058 assertions, 0 failures, 1 errors, 3 skips

TruffleRuby and JRuby was marked as allowed to fail in #14, so they will look green, but if one looks at the summary page of a CI run, e.g. https://github.com/cloudamqp/amqp-client.rb/actions/runs/1487738770, there will be annotations if they failed.

Can't do any other client operations inside subscribe block

It's not possible to call any high level operations inside the subscribe block. The program halts and it never goes on.

Example (publish inside subscribe)

client = AMQP::Client.new(RABBITMQ_URL).start
my_queue = client.queue('myqueue')
my_other_queue = client.queue('output.queue')
my_queue.subscribe(prefetch: 20, worker_threads: 0, no_ack: false) do |msg|
  # the client will hang here
  my_other_queue.publish('done')
  msg.ack
  puts 'acked'
rescue StandardError => e
  warn(e)
  msg.reject(requeue: false)
end

Support `connection_timeout` below 1 second

Is there a way to configure the client to have connection_timeout that is below 1 second?
For example something like:

uri = "amqp://guest:guest@localhost"
amqp_client_options = { connection_timeout: 0.5 }
AMQP::Client.new(uri, **amqp_client_options).connect

If not supported, do you have it on the roadmap, and if yes, when could we expect it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.