FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: SQLite3 queue pop atomicity by michalsn · Pull Request #86 · codeigniter4/queue · GitHub

fix: SQLite3 queue pop atomicity - #86

Merged
michalsn merged 1 commit into
codeigniter4:developfrom
michalsn:fix/sqlite
Jul 23, 2026
Merged

fix: SQLite3 queue pop atomicity#86
michalsn merged 1 commit into
codeigniter4:developfrom
michalsn:fix/sqlite

Conversation

Copy link
Copy Markdown
Member

Description
This PR fixes SQLite queue popping so concurrent workers cannot claim the same pending job.

SQLite now uses BEGIN IMMEDIATE to acquire the write lock before selecting and reserving a job. Other database drivers keep the existing transaction and skip-locked behavior.

It also adds coverage for SQLite job claiming and documents busyTimeout for SQLite multi-worker setups.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

michalsn added the bug Something isn't working label May 20, 2026
michalsn merged commit 343b284 into codeigniter4:develop Jul 23, 2026
21 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL