forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb-lock-b.json
More file actions
25 lines (25 loc) · 957 Bytes
/
Copy pathdb-lock-b.json
File metadata and controls
25 lines (25 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"name": "db-lock-b",
"pair": "db-lock",
"phase": "B",
"description": "Fix a database locked error in a different agent that uses a task queue backed by SQLite.",
"setup": {
"repo_state": "task_queue.py using sqlite3.connect() for job queue",
"error_message": "sqlite3.OperationalError: database is locked",
"trigger": "scheduler and worker accessing same DB file",
"lesson_pool_available": true,
"relevant_lesson": "agent-state-database-lock-cleanup"
},
"expected_outcome": {
"retrieves_lesson": true,
"avoids_dead_end": "don't just add sleep(1) as a hack",
"fix_approach": "apply WAL mode + timeout from prior lesson, adapted to task queue context",
"lesson_generated": false
},
"validation": {
"searched_misakanet": true,
"found_db_lock_lesson": true,
"fix_uses_wal_or_timeout": true
},
"measures": "Whether agent retrieves prior DB lock lesson and applies pattern to new context"
}