spdl.pipeline.config.get_pending_pipeline_pool_cleanup_count

get_pending_pipeline_pool_cleanup_count() → int[source]

Count execution-region cleanup owners whose retirement is incomplete.

These are SPDL-owned process/subinterpreter pools created by execution regions, including orphaned interpreters from failed worker startup. Failed shutdown or construction rollback retains their worker and queue owners, even if the original pipeline is dropped. This does not include caller-owned executors, standalone iterator workers or every kind of process pool.

Returns:

Number of retained cleanup owners in this process. An in-progress shutdown also counts as pending; a zero count is not proof that all application threads/processes have exited.

Added in version 0.9.0.