fix: running locally cause a crash in after adding live status
This commit is contained in:
parent
3aa239e58d
commit
d473a211d0
@ -358,6 +358,8 @@ async def send_json_override(self, event, data, sid=None):
|
|||||||
|
|
||||||
if event == 'executing' and data.get('node') is not None:
|
if event == 'executing' and data.get('node') is not None:
|
||||||
node = data.get('node')
|
node = data.get('node')
|
||||||
|
|
||||||
|
if 'prompt_id' in prompt_metadata:
|
||||||
if 'last_updated_node' in prompt_metadata[prompt_id] and prompt_metadata[prompt_id]['last_updated_node'] == node:
|
if 'last_updated_node' in prompt_metadata[prompt_id] and prompt_metadata[prompt_id]['last_updated_node'] == node:
|
||||||
return
|
return
|
||||||
prompt_metadata[prompt_id]['last_updated_node'] = node
|
prompt_metadata[prompt_id]['last_updated_node'] = node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user