mirror of
https://github.com/langgenius/dify.git
synced 2026-04-20 10:47:21 +08:00
Merge branch 'feat/queue-based-graph-engine' into chore/merge-graph-engine
This commit is contained in:
@ -113,17 +113,6 @@ class DebugLoggingLayer(GraphEngineLayer):
|
||||
# Log initial state
|
||||
self.logger.info("Initial State:")
|
||||
|
||||
# Log inputs if available
|
||||
if self.graph_runtime_state.variable_pool:
|
||||
initial_vars: dict[str, Any] = {}
|
||||
# Access the variable dictionary directly
|
||||
for node_id, variables in self.graph_runtime_state.variable_pool.variable_dictionary.items():
|
||||
for var_key, var in variables.items():
|
||||
initial_vars[f"{node_id}.{var_key}"] = str(var.value) if hasattr(var, "value") else str(var)
|
||||
|
||||
if initial_vars:
|
||||
self.logger.info(" Initial variables: %s", self._format_dict(initial_vars))
|
||||
|
||||
@override
|
||||
def on_event(self, event: GraphEngineEvent) -> None:
|
||||
"""Log individual events based on their type."""
|
||||
|
||||
@ -217,7 +217,7 @@ class WorkerPool:
|
||||
return False
|
||||
|
||||
# Find and remove idle workers that have been idle long enough
|
||||
workers_to_remove = []
|
||||
workers_to_remove: list[tuple[Worker, int]] = []
|
||||
|
||||
for worker in self._workers:
|
||||
# Check if worker is idle and has exceeded idle time threshold
|
||||
|
||||
Reference in New Issue
Block a user