Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12","3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
uses: ./.github/workflows/test.yml
with:
coverage: ${{ matrix.python-version == '3.12' }}
Expand Down
2 changes: 0 additions & 2 deletions litestar_saq/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ class PostgresQueueOptions(TypedDict, total=False):
min_size: NotRequired[int]
max_size: NotRequired[int]
saq_lock_keyspace: NotRequired[int]
job_lock_keyspace: NotRequired[int]
job_lock_sweep: NotRequired[bool]
priorities: NotRequired["tuple[int, int]"]
swept_error_message: NotRequired[str]
manage_pool_lifecycle: NotRequired[bool]
Expand Down
4 changes: 0 additions & 4 deletions litestar_saq/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ class ImproperConfigurationError(LitestarSaqError):

This exception is raised only when a module depends on a dependency that has not been installed.
"""


class BackgroundTaskError(Exception):
"""Base class for `Task` related exceptions."""
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ license = { text = "MIT" }
name = "litestar-saq"
readme = "README.md"
requires-python = ">=3.9"
version = "0.7.1"
version = "0.8.0"

[project.optional-dependencies]
hiredis = ["hiredis"]
Expand Down Expand Up @@ -81,7 +81,7 @@ test = [
allow_dirty = true
commit = false
commit_args = "--no-verify"
current_version = "0.7.1"
current_version = "0.8.0"
ignore_missing_files = false
ignore_missing_version = false
message = "chore(release): bump to `v{new_version}`"
Expand Down
15 changes: 15 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,18 @@ def fake_import_module(path: str) -> types.ModuleType:
config.broker_instance = DummyAsyncRedis() # type: ignore[assignment]

assert config.broker_type == "redis"


def test_postgres_queue_options_does_not_contain_deprecated_options() -> None:
"""Verify that deprecated postgres lock options are not in PostgresQueueOptions."""
from litestar_saq.config import PostgresQueueOptions

assert "job_lock_keyspace" not in PostgresQueueOptions.__annotations__
assert "job_lock_sweep" not in PostgresQueueOptions.__annotations__


def test_background_task_error_not_importable() -> None:
"""Verify that BackgroundTaskError has been removed and cannot be imported."""
import litestar_saq.exceptions

assert not hasattr(litestar_saq.exceptions, "BackgroundTaskError")
98 changes: 37 additions & 61 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.