Comments (4)
Backend.reject does not take requeue argument, that's what Backend.requeue is
for. Closed by 0349010. Thanks to gregoirecachet
from carrot.
Thanks for the fix. I'm using RabbitMQ, but the rejects aren't working. It seems like they aren't implemented yet and they throw an exception. Can you confirm? (I guessed you are using RabbitMQ from the README).
from carrot.
Yeah, seems so: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2009-January/003183.html
Come to think about it, I don't have a real need for reject(), as any place I do use reject() there is an error that is basically unrecoverable. Even in the README example, in which if the data is malformed, it means either that the user didn't send the right message data format, or a message was routed to the wrong place. So I think I'll rather raise an exception there than use message.reject().
from carrot.
I think there are 2 types of errors :
1/ a temporary error (for example, the db transaction can't be committed for concurrency issues) and the message should be resent later.
2/ a permanent error (bug in the code or in data format that happens every time). You won't get anything (unless you upgrade the consumer application) if you retry, so throw an error and drop the message from the queue.
reject() is good for the first kind of errors. But I can log them and deal with them by hand right now.
from carrot.
Related Issues (20)
- qos is not subclassed in amqp backend HOT 5
- Do you need django to generate the docs? HOT 2
- carrot cannot used on python 2.4 HOT 5
- Apache Qpid C++ Broker 0.5 support seems to be broken HOT 2
- carrot.messaging.establish_connection requires DjangoBrokerConnection HOT 2
- Python Queue module based backend doesn't work with iterconsume() or wait() HOT 1
- Consumer.iterconsume should raise StopIteration when backend channel is closed
- global name 'django_settings' is not defined HOT 1
- carrot doesn't work with amqplib 0.5, but the setup.py dependency is not versioned. HOT 1
- Receive messages with any routing_key HOT 1
- debian package: python-carrot depends on python-django
- New API
- test_consumerset_iterconsume fails
- No ability to set different auto_delete setting for both exchange and queue.
- memory backend not working: 'Backend' object has no attribute 'callback' HOT 3
- pika backend calls basic_get with incorrect arguments HOT 1
- Global request timeout HOT 1
- Use guest/guest as username/password in README HOT 4
- carrot.utils - cannot import _uuid_generate_random - python 2.7.11 HOT 2
- ImportError: No module named backend
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 carrot.