Spaces:
Sleeping
Sleeping
Update kig_core/planner.py
Browse files- kig_core/planner.py +2 -0
kig_core/planner.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import logging
|
| 2 |
import re
|
|
|
|
| 3 |
from typing import List, Dict, Any
|
| 4 |
from langgraph.graph import StateGraph, END
|
| 5 |
from langgraph.checkpoint.memory import MemorySaver # Or SqliteSaver etc.
|
|
@@ -168,6 +169,7 @@ def generate_structured_issues(state: PlannerState) -> Dict[str, Any]:
|
|
| 168 |
}
|
| 169 |
except Exception as e:
|
| 170 |
logger.error(f"Failed to generate or parse structured key issues: {e}", exc_info=True)
|
|
|
|
| 171 |
# Attempt to get raw output for debugging if possible
|
| 172 |
raw_output = "Could not retrieve raw output."
|
| 173 |
try:
|
|
|
|
| 1 |
import logging
|
| 2 |
import re
|
| 3 |
+
import time
|
| 4 |
from typing import List, Dict, Any
|
| 5 |
from langgraph.graph import StateGraph, END
|
| 6 |
from langgraph.checkpoint.memory import MemorySaver # Or SqliteSaver etc.
|
|
|
|
| 169 |
}
|
| 170 |
except Exception as e:
|
| 171 |
logger.error(f"Failed to generate or parse structured key issues: {e}", exc_info=True)
|
| 172 |
+
time.sleep(60)
|
| 173 |
# Attempt to get raw output for debugging if possible
|
| 174 |
raw_output = "Could not retrieve raw output."
|
| 175 |
try:
|