rocketmq-client-python icon indicating copy to clipboard operation
rocketmq-client-python copied to clipboard

ConsumeStatus.CONSUME_SUCCESS is deprecated?

Open zengzhengrong opened this issue 4 years ago • 3 comments

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

zengzhengrong avatar Jun 10 '21 07:06 zengzhengrong

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 avatar Jun 16 '21 17:06 francisoliverlee

@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

zengzhengrong avatar Jun 17 '21 01:06 zengzhengrong

@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.

baby1990 avatar Apr 13 '22 07:04 baby1990