|
@@ -40,17 +40,17 @@ def title_generate_main():
|
|
|
|
|
|
instance_id = config_.MQ_CONFIG['INSTANCE_ID']
|
|
|
|
|
|
- todo_topic_name = config_.MQ_TOPIC_CONFIG['asr_title_todo']['topic_name']
|
|
|
+ consumer_topic_name = config_.MQ_TOPIC_CONFIG['asr_title_todo']['topic_name']
|
|
|
|
|
|
group_id = config_.MQ_TOPIC_CONFIG['asr_title_todo']['group_id']
|
|
|
- consumer = mq_client.get_consumer(instance_id, todo_topic_name, group_id)
|
|
|
+ consumer = mq_client.get_consumer(instance_id, consumer_topic_name, group_id)
|
|
|
|
|
|
|
|
|
wait_seconds = 3
|
|
|
|
|
|
batch = 1
|
|
|
print(("%sConsume And Ak Message From Topic%s\nTopicName:%s\nMQConsumer:%s\nWaitSeconds:%s\n" \
|
|
|
- % (10 * "=", 10 * "=", todo_topic_name, group_id, wait_seconds)))
|
|
|
+ % (10 * "=", 10 * "=", consumer_topic_name, group_id, wait_seconds)))
|
|
|
while True:
|
|
|
receipt_handle_list = []
|
|
|
try:
|
|
@@ -94,6 +94,9 @@ def title_generate_main():
|
|
|
log_.info(traceback.format_exc())
|
|
|
else:
|
|
|
|
|
|
+ producer_topic_name = config_.MQ_TOPIC_CONFIG['asr_title_done']['topic_name']
|
|
|
+ producer = mq_client.get_producer(instance_id=instance_id, topic_name=producer_topic_name)
|
|
|
+ ????
|
|
|
print(title)
|
|
|
|
|
|
receipt_handle_list.append(msg.receipt_handle)
|