dfdf
This commit is contained in:
@@ -27,10 +27,7 @@ from cmdlet import REGISTRY
|
||||
from config import get_local_storage_path, load_config
|
||||
from SYS.worker_manager import WorkerManager
|
||||
|
||||
try: # Reuse the CLI selection parser instead of reimplementing it.
|
||||
from CLI import _parse_selection_syntax
|
||||
except ImportError: # pragma: no cover - fallback for atypical environments
|
||||
_parse_selection_syntax = None # type: ignore
|
||||
from CLI import MedeiaCLI
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
@@ -368,11 +365,8 @@ class PipelineExecutor:
|
||||
|
||||
@staticmethod
|
||||
def _parse_selection(token: str) -> Optional[Sequence[int]]:
|
||||
if _parse_selection_syntax:
|
||||
parsed = _parse_selection_syntax(token)
|
||||
if parsed:
|
||||
return sorted(parsed)
|
||||
return None
|
||||
parsed = MedeiaCLI.parse_selection_syntax(token)
|
||||
return sorted(parsed) if parsed else None
|
||||
|
||||
|
||||
class _WorkerSession:
|
||||
|
||||
Reference in New Issue
Block a user