Skip to content

Commit a90f6d4

Browse files
authored
Slot info should be optional on release context (#695)
1 parent 853889c commit a90f6d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

temporalio/worker/_tuning.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ class SlotReleaseContext:
170170
Custom slot suppliers are currently experimental.
171171
"""
172172

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

0 commit comments

Comments
 (0)