Skip to content

Commit

Permalink
Slot info should be optional on release context (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushisource authored Dec 3, 2024
1 parent 853889c commit a90f6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions temporalio/worker/_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ class SlotReleaseContext:
Custom slot suppliers are currently experimental.
"""

slot_info: SlotInfo
"""Info about the task that will be using the slot."""
slot_info: Optional[SlotInfo]
"""Info about the task that will be using the slot. May be None if the slot was never used."""
permit: SlotPermit
"""The permit that was issued when the slot was reserved."""

Expand Down

0 comments on commit a90f6d4

Please sign in to comment.