Comments (3)
The code where this is happening is here:
def listen
raise ProponoError.new("topic_id is nil") unless @topic_id
loop do
unless read_messages
sleep 10
end
end
end
private
def read_messages
response = sqs.receive_message( queue_url, {'MaxNumberOfMessages' => 10} )
messages = response.body['Message']
if messages.empty?
false
else
messages.each { |msg| process_sqs_message(msg) }
end
rescue
Propono.config.logger.error "Unexpected error reading from queue #{queue_url}"
Propono.config.logger.error $!
end
We are rescuing the error in read_messages and then continuing to loop in listen, after a delay of 10 seconds. This continues to spin until the process is stopped, but on restart we are able to read from the sqs queue without any problem.
from propono.
@malcyL Is this still an issue or did we fix it?
from propono.
@iHiD This has never been reproduced, in live or test.
It's possible that whatever caused this has been fixed - not a great answer I know.
We left the issue open so we had a record of the failure. It's now 3 months later. We have some significant usage of this in live now. With no re occurrences, and still being unable to reproduce it. I propose closing it.
from propono.
Related Issues (20)
- Travis CI Build Failures Due to Bundler Version HOT 1
- wrong number of arguments (given 5, expected 4) HOT 3
- Asynchronous listen_to_queue HOT 2
- License info on gh-pages branch inconsistent with LICENSE.md HOT 1
- Use IAM role instead of access & secret keys HOT 3
- Need a way to pass Subject for the SNS payload HOT 9
- Way to use FIFO queues? HOT 5
- Should we merge iterum into Propono HOT 2
- Message Visibility Timeout is too short for some classes of tasks HOT 3
- Docs - Note about needing a subscriber before you publish
- Docs - Flowchart of corrupted/failed/etc queue logic
- Docs - Description/diagram of single-queue-multiple-listener vs fanout
- How do I use GoAWS? HOT 3
- Update repository HOT 1
- Javascript subscriber HOT 7
- ArgumentError: invalid configuration option `:use_iam_profile' HOT 2
- Queue size and oldest message? HOT 1
- Multiple listen blocks on the same file HOT 7
- Slow queue wait implementation causes delay in processing of new main queue messages HOT 2
- messages being processed multiple times by same worker name HOT 4
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 propono.