Comments (5)
@KinWang-2013 My issue is also resolved, I was using this as config earlier
~ Sneakers.configure( { amqp: ENV.fetch('SNEAKER_URL', 'amqp://guest:guest@localhost:5672'), ~
Now i am using this
module Connection
def self.sneakers
@_sneakers ||= begin
Bunny.new(
host: ENV.fetch('RABBITMQ_HOST', 'localhost'),
port: ENV.fetch('RABBITMQ_PORT', 5672).to_i,
username: ENV.fetch('RABBITMQ_USER', 'guest'),
password: ENV.fetch('RABBITMQ_PASSWORD', 'guest'),
automatic_recovery: true,
heartbeat: 30,
log_level: :debug,
log_file: 'log/rabbitmq.log'
)
end
end
end
Sneakers.configure(
{
connection: Connection.sneakers,
I am not sure whether its a right way or not but it is working for me.
from sneakers.
I am facing the same issue, it works for few hours . After few hours it stopped working, i can't see anything in the log, i have to delete the existing pod so it starts again
from sneakers.
I am facing the same issue, it works for few hours . After few hours it stopped working, i can't see anything in the log, i have to delete the existing pod so it starts again
I am facing the same issue in production sneaker is 2.12.0, bunny is 2.22.0, ruby is 2.7.8. Cant't really say it is due to inactivity but it works for some time and after some time it stops working with queue count static or increasing and consumer consumer count 0. Any one got a solution or found the root cause?
from sneakers.
@luismiv85 Have you found any solution for it?
Below are versions
Ruby - 3.2.2
Bunny - 2.22.0
Sneakers - 2.12.0
from sneakers.
My issue is fixed, It was due to the timeout error
Consumer 1 on channel 1 has timed out waiting for delivery acknowledgement. Timeout used: 1800000 ms. This timeout value can be configured, see consumers doc guide to learn more
one job was taking a lot of time hence it did not acknowledge on time.
from sneakers.
Related Issues (20)
- What is the plan for 2.13.0? HOT 23
- Getting this error while trying to drive watir within my workers HOT 2
- If there is a `@` in RabbitMQ password, you may have an `Unexpected error bad URI`. HOT 2
- Is still actively maintained? HOT 7
- Messages not sent from rabbitmq to sneakers
- Is there some potential issues if setting single worker but multi-thread in prd env? HOT 2
- Infinity restart when errors happens inside of hooks
- Stops "ack!"ing after 10 messages HOT 2
- Channels not recovering after server restart HOT 4
- Ruby 3.2.0 File#exists? HOT 1
- Memory leak HOT 2
- Consumer thread interrupt HOT 4
- Rails 7.0.4.2 - NoMethodError: undefined method `autoloader' for #<Rails::Application::Configuration... HOT 2
- too many accepting and closing AMQP connections in the rabbitmq server logs HOT 1
- Dead letter queue consumption issue HOT 2
- How to Inject code into worker initialization?
- Documentation not very clear on how to handle DB connections when using the gem in a Rails application HOT 2
- Channel shared between threads for MaxRetry handler
- Using up disk space
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sneakers.