Skip to main content

pool_grow

Grow pool by n processes/threads.

def pool_grow(
state: object,
n: integer = 1
) - > object

Grow pool by n processes/threads.

Parameters

NameTypeDescription
stateobjectThe current application state containing the consumer and pool controller instances.
ninteger = 1The number of worker processes or threads to add to the current execution pool.

Returns

TypeDescription
objectA success message if the pool was grown, or an error message if the operation is unsupported due to autoscaling being enabled.