better:更清晰的子心流停用逻辑
This commit is contained in:
@@ -58,7 +58,7 @@ class InterestLogger:
|
||||
return results
|
||||
|
||||
for subheartflow in all_flows:
|
||||
if self.subheartflow_manager.get_subheartflow(subheartflow.subheartflow_id):
|
||||
if self.subheartflow_manager.get_or_create_subheartflow(subheartflow.subheartflow_id):
|
||||
tasks.append(
|
||||
asyncio.create_task(subheartflow.get_full_state(), name=f"get_state_{subheartflow.subheartflow_id}")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user