Skip to content

fix: harden sqlite queue path handling#7

Open
giscebot wants to merge 1 commit into
mainfrom
issue-6-sqlite-parent-dir
Open

fix: harden sqlite queue path handling#7
giscebot wants to merge 1 commit into
mainfrom
issue-6-sqlite-parent-dir

Conversation

@giscebot

@giscebot giscebot commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Expand ~ in the SQLite queue DB path before opening the database.
  • Recreate the DB parent directory immediately before each SQLite connection, so long-running workers recover if the state directory is missing at claim time.
  • Add focused queue tests for literal ~ paths and missing parent directories.

Fixes #6.
Fixes #8.

Tests

  • pytest -q tests/test_queue.py
  • pytest -q

Notes

  • No TASK-xxxxx was provided in the issue. I could not create an ERP task from this runtime because no ERP connection arguments/token are configured for pygisceclient.

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 OperationalError: unable to open database file

1 participant