Repository navigation
feat(watch): support PostgreSQL watch persistence - #7568
Open
zhanglistar wants to merge 3 commits into
Open
zhanglistar wants to merge 3 commits into
zhanglistar wants to merge 3 commits into
Conversation
Share transactional watch operations with MySQL and add PostgreSQL configuration, deployment schema, and real-backend CI coverage.
Only report duplicate-key violations as existing Watches, and reuse the relational runtime from the Task/Work PostgreSQL implementation while retaining MySQL compatibility exports.
Reconcile shared SQL runtime and container database routing, update Watch test fixtures, and complete resource API documentation so local regressions and docs checks pass.
This branch has not been deployed
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deployments can now persist shared Watch metadata and run occupancy in PostgreSQL by selecting
storage.watch_store.provider=postgres. Previously, shared Watch persistence required MySQL.postgresdependency extra, PostgreSQL 14+ deployment DDL, validated connection/TLS configuration, and bilingual deployment instructions. Tables must be provisioned before startup; changing providers does not migrate existing Watches.This provider configures Watch persistence independently of Task/Work, Account, path locks, coordination, and vector storage.
Validation
main(bd70f20a8), preserving bothpgvectorandpostgresdependency extras.git diff --check, anduv lock --check.tests/service/test_resource_service_watch.pymatch the names and errors previously reproduced on clean baseline37a744373: stale mocks lackread_fileordoc_type.