Skip to content

[pipeline] Move isolating-pool executor helpers to _common/_convert - #1580

Merged
mthrok merged 1 commit into
mainfrom
refactor-helper
Jul 2, 2026
Merged

[pipeline] Move isolating-pool executor helpers to _common/_convert#1580
mthrok merged 1 commit into
mainfrom
refactor-helper

Conversation

@mthrok

@mthrok mthrok commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Pure refactor, no behavior change. Moves the executor-classification helpers _is_isolating_pool and _is_interpreter_pool — and the _INTERPRETER_POOL_CLASS version guard they depend on — from spdl/pipeline/_fuse.py into spdl/pipeline/_common/_convert.py, next to the existing _is_process_pool they build on.

_common/_convert sits low in the import graph, so hosting the helpers there lets other modules (notably spdl/pipeline/defs) reuse them without importing _fuse and creating an import cycle. _fuse now imports _is_isolating_pool from _common/_convert instead of defining it.

Extracted from #1579

@mthrok
mthrok marked this pull request as ready for review July 2, 2026 01:07
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 2, 2026
Pure refactor, no behavior change. Moves the executor-classification helpers `_is_isolating_pool` and `_is_interpreter_pool` — and the `_INTERPRETER_POOL_CLASS` version guard they depend on — from `spdl/pipeline/_fuse.py` into `spdl/pipeline/_common/_convert.py`, next to the existing `_is_process_pool` they build on.

`_common/_convert` sits low in the import graph, so hosting the helpers there lets other modules (notably `spdl/pipeline/defs`) reuse them without importing `_fuse` and creating an import cycle. `_fuse` now imports `_is_isolating_pool` from `_common/_convert` instead of defining it.

Extracted from #1579
@mthrok
mthrok force-pushed the refactor-helper branch from ca01ddb to 0849118 Compare July 2, 2026 01:08
@meta-codesync

meta-codesync Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D110410382. (Because this pull request was imported automatically, there will not be any future comments.)

@mthrok
mthrok merged commit d8a0dbc into main Jul 2, 2026
110 of 111 checks passed
@mthrok
mthrok deleted the refactor-helper branch July 2, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant