改为手动提交
This commit is contained in:
parent
1d6854beff
commit
e33a22d1d4
6
app.py
6
app.py
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user