kkrunner.backends.ExecutorPool

class kkrunner.backends.ExecutorPool[source]

Bases: object

Process-local cache of reusable execution backends.

static key_for_profile(profile)[source]

Return the endpoint identity used for executor reuse.

get(key, factory)[source]
for_endpoint(endpoint)[source]

Return the shared backend reconstructed from endpoint.

for_profile(profile)[source]

Return the shared backend suitable for profile.

discard(key)[source]

Forget one pooled backend and close it when supported.

discard_profile(profile)[source]
close()[source]

Close every pooled executor, propagating the first close failure.