src/core/state.py
StateManager は、BROWNIE の長期記憶と実行状態を管理します。SQLite をバックエンドに使用し、アプリケーションのクラッシュや再起動を跨いでタスクの整合性を維持することを目的としています。
StateManager
初期化引数:
db_path
公開メソッド:
connect() -> None
journal_mode=WAL
_check_integrity
update_task(task_id, status, repo_name, ...) -> None
INSERT OR REPLACE
update_task_context(task_id, context_delta) -> None
context
reset_orphaned_tasks() -> None
Failed
tasks
id
status
updated_at
InQueue
InProgress
Completed
Suspended
aiosqlite
json
pathlib
logging
There was an error while loading. Please reload this page.