-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
litestar-saq/litestar_saq/cli.py
Lines 40 to 42 in 9f9ac11
| shutdown_grace_period = getattr(worker, "_shutdown_grace_period_s", 0) | |
| cancellation_hard_deadline = getattr(worker, "_cancellation_hard_deadline_s", 0) | |
| grace_period = shutdown_grace_period + cancellation_hard_deadline |
_shutdown_grace_period_s is instantiated in the Worker class as Optional[int] = None. getattr() will return None and grace_period = shutdown_grace_period + cancellation_hard_deadline will raise TypeError unsupported operand type(s) for +: 'NoneType' and 'float' when _shutdown_grace_period_s is not provided in QueueConfig
URL to code causing the issue
No response
MCVE
# Your MCVE code hereSteps to reproduce
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See errorScreenshots
"In the format of: "
Logs
Package Version
0.7.0
Platform
- Linux
- Mac
- Windows
- Other (Please specify in the description above)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working