From 162cd405005e783da23b51d181eb3a0134167ba5 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Mon, 25 Nov 2024 11:33:28 -0800 Subject: [PATCH] Slot info should be optional on release context --- temporalio/worker/_tuning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temporalio/worker/_tuning.py b/temporalio/worker/_tuning.py index ef1f2a25..3f28c069 100644 --- a/temporalio/worker/_tuning.py +++ b/temporalio/worker/_tuning.py @@ -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."""