Conversation
…r-compose for local development
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds broker and schedule source functionality to the taskiq_psqlpy library, enabling PostgreSQL-based task scheduling and message queue functionality using the psqlpy driver.
Key Changes:
- Implements PSQLPyBroker for PostgreSQL-based message queuing using LISTEN/NOTIFY
- Adds PSQLPyScheduleSource for persistent task schedule management in PostgreSQL
- Introduces new dependencies: polyfactory, pytest-asyncio, sqlalchemy-utils, faker, greenlet
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Adds new dependencies (polyfactory, pytest-asyncio, sqlalchemy-utils, faker, greenlet, backports-asyncio-runner, tzdata) required for testing and schedule source functionality |
| taskiq_psqlpy/broker.py | New broker implementation using PostgreSQL LISTEN/NOTIFY for message queuing with support for delayed tasks |
| taskiq_psqlpy/schedule_source.py | New schedule source implementation for persistent storage and retrieval of scheduled tasks in PostgreSQL |
| taskiq_psqlpy/queries.py | Adds SQL queries for schedule management and message broker table operations |
| taskiq_psqlpy/result_backend.py | Updates default DSN connection string to use new standard credentials |
| taskiq_psqlpy/init.py | Exports new PSQLPyBroker and PSQLPyScheduleSource classes |
| tests/test_schedule_source.py | Adds integration tests for schedule source functionality including get, add, and delete operations |
| tests/conftest.py | Updates PostgreSQL DSN default and removes unused anyio_backend fixture |
| pyproject.toml | Adds test dependencies, updates line length to 120, and configures pytest with asyncio settings |
| docker-compose.yml | New Docker Compose configuration for local PostgreSQL development environment |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.