We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def createConsumer(): consumer = PushConsumer(gid) # 指定group-id consumer.set_namesrv_addr(name_srv) # rocketmq队列接口地址(服务器ip:port) consumer.subscribe(topic, callback) # 订阅 consumer.start() # 开启 if name=='main': print('Parent process %s.' % os.getpid()) for i in range(5): p = Process(target=createConsumer) print('Run child process (%s)...' % (os.getpid())) p.start() while True: time.sleep(3600) 为什么我写了多进程的消费程序,但是却并不执行
The text was updated successfully, but these errors were encountered:
我也遇到了
Sorry, something went wrong.
No branches or pull requests
def createConsumer():
consumer = PushConsumer(gid) # 指定group-id
consumer.set_namesrv_addr(name_srv) # rocketmq队列接口地址(服务器ip:port)
consumer.subscribe(topic, callback) # 订阅
consumer.start() # 开启
if name=='main':
print('Parent process %s.' % os.getpid())
for i in range(5):
p = Process(target=createConsumer)
print('Run child process (%s)...' % (os.getpid()))
p.start()
while True:
time.sleep(3600)
为什么我写了多进程的消费程序,但是却并不执行
The text was updated successfully, but these errors were encountered: