MCPcopy
hub / github.com/celery/celery / pool_grow

Function pool_grow

celery/worker/control.py:540–547  ·  view source on GitHub ↗

Grow pool by n processes/threads.

(state, n=1, **kwargs)

Source from the content-addressed store, hash-verified

538 signature='[N=1]',
539)
540def pool_grow(state, n=1, **kwargs):
541 """Grow pool by n processes/threads."""
542 if state.consumer.controller.autoscaler:
543 return nok("pool_grow is not supported with autoscale. Adjust autoscale range instead.")
544 else:
545 state.consumer.pool.grow(n)
546 state.consumer._update_prefetch_count(n)
547 return ok('pool will grow')
548
549
550@control_command(

Callers

nothing calls this directly

Calls 4

nokFunction · 0.85
okFunction · 0.85
growMethod · 0.45

Tested by

no test coverage detected