chore: cleanup pycodestyle E rules (#8269)

This commit is contained in:
Bowen Liang
2024-09-11 18:55:00 +08:00
committed by GitHub
parent f515af2232
commit 781d294f49
14 changed files with 25 additions and 24 deletions

View File

@@ -310,7 +310,7 @@ class Graph(BaseModel):
parallel_branch_node_ids["default"].append(graph_edge.target_node_id)
else:
condition_hash = graph_edge.run_condition.hash
if not condition_hash in condition_edge_mappings:
if condition_hash not in condition_edge_mappings:
condition_edge_mappings[condition_hash] = []
condition_edge_mappings[condition_hash].append(graph_edge)

View File

@@ -90,9 +90,9 @@ class GraphEngine:
thread_pool_max_submit_count = 100
thread_pool_max_workers = 10
## init thread pool
# init thread pool
if thread_pool_id:
if not thread_pool_id in GraphEngine.workflow_thread_pool_mapping:
if thread_pool_id not in GraphEngine.workflow_thread_pool_mapping:
raise ValueError(f"Max submit count {thread_pool_max_submit_count} of workflow thread pool reached.")
self.thread_pool_id = thread_pool_id