class documentation

class ResourceBasedSlotConfig: (source)

View In Hierarchy

Options for a specific slot type being used with a ResourceBasedSlotSupplier.

Warning

The resource based tuner is currently experimental.

Class Variable maximum_slots Maximum amount of slots permitted. Defaults to 500.
Class Variable minimum_slots Amount of slots that will be issued regardless of any other checks. Defaults to 5 for workflows and 1 for activities.
Class Variable ramp_throttle Minimum time we will wait (after passing the minimum slots number) between handing out new slots in milliseconds. Defaults to 0 for workflows and 50ms for activities.
maximum_slots: Optional[int] = (source)

Maximum amount of slots permitted. Defaults to 500.

minimum_slots: Optional[int] = (source)

Amount of slots that will be issued regardless of any other checks. Defaults to 5 for workflows and 1 for activities.

ramp_throttle: Optional[timedelta] = (source)

Minimum time we will wait (after passing the minimum slots number) between handing out new slots in milliseconds. Defaults to 0 for workflows and 50ms for activities.

This value matters because how many resources a task will use cannot be determined ahead of time, and thus the system should wait to see how much resources are used before issuing more slots.