Install & Compatibility
Where this runs
tested against v0.8.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 1.362s · 72.3MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 6.5s · import 1.319s · 74MB
72MB installed
● package 72MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SAQPlugin
✓ from litestar_saq import SAQPlugin
Correct import path
SAQConfig
✓ from litestar_saq import SAQConfig
Configuration class for SAQ plugin
Queue
✓ from saq import Queue
✗ from litestar_saq import Queue
Queue class is from saq library, not from litestar-saq
Basic Litestar app with SAQ plugin, one queue, one task.
import os
from litestar import Litestar
from litestar_saq import SAQPlugin, SAQConfig
from saq import Queue
queue = Queue.from_url(os.environ.get('REDIS_URL', 'redis://localhost:6379'))
async def hello(ctx):
print("Hello, world!")
saq_config = SAQConfig(queues=[queue], default_queue=queue, worker_processes=1)
saq_plugin = SAQPlugin(config=saq_config)
app = Litestar(plugins=[saq_plugin])
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
Errors
Common errors & fixes
TypeError: __init__() got an unexpected keyword argument 'queue'
In SAQConfig, the 'queue' parameter was renamed to 'queues' and 'default_queue' in v0.6.0.
fixUse `queues=[your_queue]` and `default_queue=your_queue` in SAQConfig.
TypeError: 'NoneType' object is not subscriptable
Shutdown_grace_period is None or not set, causing a bug in shutdown logic in v0.7.0/v0.7.1.
fixSet shutdown_grace_period to a positive integer in SAQConfig, e.g., `SAQConfig(shutdown_grace_period=60)`.
ModuleNotFoundError: No module named 'saq'
The `saq` package is not installed. litestar-saq depends on it but may not install it automatically without extras.
fixInstall saq: `pip install saq` or use the redis extra: `pip install litestar-saq[redis]` which includes saq.
Upgrade
Version history
0.8.0latest on PyPI · released Jun 3, 2026
Audit
Dependencies
No dependency data recorded yet.