enqueue-dev: [redis] LogicException on set priority
The method \Enqueue\Redis\RedisProducer::setPriority
currently throws an logic exception for the reason, that this isn’t implemented.
This exception happens on consuming data from the queue.
But it is possible to send messages having a priority.
Therefor, the whole queue went invalid. It’s no longer possible to process messages if this happens.
If the Redis producer doesn’t care about priority, this information should be simply ignored. Throwing an exception isn’t necessary and useful at all.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 24 (24 by maintainers)
That’s expected behavior, do not set priority if your transport does not support it. In future, we will add ability to instruct client to ignore these options if not supported
@FrankGiesecke merged, thank you!