Skip to content

Commit 1361e49

Browse files
committed
Default all for create_fixed
1 parent 9fa42ac commit 1361e49

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

temporalio/worker/_tuning.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,15 @@ def create_resource_based(
391391
@staticmethod
392392
def create_fixed(
393393
*,
394-
workflow_slots: Optional[int],
395-
activity_slots: Optional[int],
396-
local_activity_slots: Optional[int],
397-
nexus_slots: Optional[int],
394+
workflow_slots: Optional[int] = None,
395+
activity_slots: Optional[int] = None,
396+
local_activity_slots: Optional[int] = None,
397+
nexus_slots: Optional[int] = None,
398398
) -> WorkerTuner:
399-
"""Create a fixed-size tuner with the provided number of slots. Any unspecified slots will default to 100."""
399+
"""Create a fixed-size tuner with the provided number of slots.
400+
401+
Any unspecified slot numbers will default to 100.
402+
"""
400403
return _CompositeTuner(
401404
FixedSizeSlotSupplier(workflow_slots if workflow_slots else 100),
402405
FixedSizeSlotSupplier(activity_slots if activity_slots else 100),

0 commit comments

Comments
 (0)