Skip to content

fix: recover when sqlite parent directory disappears#19

Open
giscebot wants to merge 1 commit into
mainfrom
fix/issue-18-sqlite-parent-dir
Open

fix: recover when sqlite parent directory disappears#19
giscebot wants to merge 1 commit into
mainfrom
fix/issue-18-sqlite-parent-dir

Conversation

@giscebot

Copy link
Copy Markdown
Collaborator

Summary

  • expand literal ~ in the configured SQLite queue path
  • recreate the database parent directory before every connection, allowing long-running workers to recover if the state directory disappears
  • cover user expansion and missing-parent recovery with focused tests

Closes #18.

Tests

  • /home/openclaw/.pyenv/versions/erp3/bin/python -m pytest -q tests/test_queue.py (16 passed)
  • clean temporary Python 3.11 environment: pytest -q (passed)

Traceability

No TASK id was supplied. ERP task creation is unavailable in this runtime because no ERP URL/database/token configuration is present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OperationalError: unable to open database file

1 participant