Handler Selection Strategies
Sethandler_selection per handler in handlers.toml. A worker scans from the chosen starting slot and takes an available process. If all slots are acquired, it waits for a release while its task claim is renewed.
instances must be positive. Match pool size to the handler’s CPU, memory, and external-service limits. A worker count higher than useful handler concurrency can increase waiting without improving throughput. Startup launches persistent handler processes without a readiness handshake; submit a smoke task to verify initialization.
See handler configuration for timeout, memory, environment settings, and task selection for queue order.