spdl.pipeline.config.retry_pending_pipeline_pool_cleanup

retry_pending_pipeline_pool_cleanup() → None[source]

Attempt each retained execution-region pool’s cleanup once.

Use this after a failed pipeline stop or construction rollback, once the cause of failure is resolved. Worker joins/escalation keep their usual per-worker bounds; this function is synchronous, not a background retry loop, and total time grows with the number of pending workers. Pools stay rooted until their workers retire and required queue closes succeed. Do not call from a signal handler or a pool’s own shutdown callback.

Newly registered pools are not added to this call’s snapshot. Entries inherited by a forked child are never retried on behalf of their parent. This is in-process recovery, not recovery after the owning process exits.

Raises:

BaseExceptionGroup – Cleanup errors or interruptions from owners still pending after this attempt. All owners in the snapshot are attempted independently; unfinished resources remain retained for a later try.

Example:

from spdl.pipeline.config import (
    get_pending_pipeline_pool_cleanup_count,
    retry_pending_pipeline_pool_cleanup,
)

if get_pending_pipeline_pool_cleanup_count():
    retry_pending_pipeline_pool_cleanup()

Added in version 0.9.0.