改为手动提交

This commit is contained in:
wuaho 2021-10-26 21:14:30 +08:00
parent 1d6854beff
commit e33a22d1d4

6
app.py
View File

@ -40,7 +40,11 @@ class XProcess(Process):
type_ = data['#type']
del data['#type']
ts = int(time.time())
data['properties']['unique_id'] = f'{msg.topic}-{msg.partition}-{msg.offset}'
try:
data['properties']['unique_id'] = f'{msg.topic}-{msg.partition}-{msg.offset}'
except:
pass
if msg.topic == 'debug':
self.log.info(data)