rocketmq-client-python
rocketmq-client-python copied to clipboard
ConsumeStatus.CONSUME_SUCCESS is deprecated?
I could not find the ConsumeStatus.CONSUME_SUCCESS follow in Readme.md
So , I find the below and use it callback return
from rocketmq.ffi import _CConsumeStatus
def callback(msg):
...
return _CConsumeStatus.CONSUME_SUCCESS
python version 3.7
pip version
root@2340c37e8721:/workspace# pip list | grep rocket
rocketmq 0.4.4
rocketmq-client-python 2.0.0
cpp version 2.0.0
replace by https://github.com/apache/rocketmq-client-python/blob/d074515b0104354d1b54ad53a110e49413f8d889/rocketmq/client.py#L60
demo code : https://github.com/apache/rocketmq-client-python/blob/master/tests/test_consumer.py
@francisoliverlee use pip install does not have this class,
root@2340c37e8721:/workspace# pip list | grep rocket
rocketmq 0.4.4
rocketmq-client-python 2.0.0
@francisoliverlee use pip install does not have this class,
root@2340c37e8721:/workspace# pip list | grep rocket rocketmq 0.4.4 rocketmq-client-python 2.0.0
uninstall the rocketmq package, it's deprecated.Just use rocketmq-client-python.