h
This commit is contained in:
@@ -10,6 +10,7 @@ import contextlib
|
||||
import io
|
||||
import shlex
|
||||
import sys
|
||||
import traceback
|
||||
from pathlib import Path
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any, Callable, Dict, List, Optional, Sequence
|
||||
@@ -25,8 +26,9 @@ from SYS import pipeline as ctx
|
||||
from CLI import ConfigLoader
|
||||
from SYS.pipeline import PipelineExecutor
|
||||
from SYS.worker import WorkerManagerRegistry
|
||||
from SYS.logger import set_debug
|
||||
from SYS.logger import set_debug, debug
|
||||
from SYS.rich_display import capture_rich_output
|
||||
import traceback
|
||||
from SYS.result_table import Table
|
||||
|
||||
|
||||
@@ -120,7 +122,7 @@ class PipelineRunner:
|
||||
result.stderr = syntax_error.message
|
||||
return result
|
||||
except Exception:
|
||||
pass
|
||||
debug(traceback.format_exc())
|
||||
|
||||
try:
|
||||
tokens = shlex.split(normalized)
|
||||
@@ -137,11 +139,12 @@ class PipelineRunner:
|
||||
try:
|
||||
set_debug(bool(config.get("debug", False)))
|
||||
except Exception:
|
||||
pass
|
||||
debug(traceback.format_exc())
|
||||
|
||||
try:
|
||||
self._worker_manager = WorkerManagerRegistry.ensure(config)
|
||||
except Exception:
|
||||
debug(traceback.format_exc())
|
||||
self._worker_manager = None
|
||||
|
||||
ctx.reset()
|
||||
@@ -153,7 +156,7 @@ class PipelineRunner:
|
||||
seeds = [seeds]
|
||||
ctx.set_last_result_items_only(list(seeds))
|
||||
except Exception:
|
||||
pass
|
||||
debug(traceback.format_exc())
|
||||
|
||||
stdout_buffer = io.StringIO()
|
||||
stderr_buffer = io.StringIO()
|
||||
@@ -173,7 +176,7 @@ class PipelineRunner:
|
||||
try:
|
||||
ctx.clear_current_command_text()
|
||||
except Exception:
|
||||
pass
|
||||
debug(traceback.format_exc())
|
||||
result.stdout = stdout_buffer.getvalue()
|
||||
result.stderr = stderr_buffer.getvalue()
|
||||
|
||||
@@ -268,7 +271,7 @@ class PipelineRunner:
|
||||
items_copy = items.copy() if isinstance(items, list) else list(items) if items else []
|
||||
out.append((t, items_copy, subj))
|
||||
except Exception:
|
||||
pass
|
||||
debug(traceback.format_exc())
|
||||
return out
|
||||
|
||||
snap["result_table_history"] = _copy_history(state.result_table_history)
|
||||
@@ -306,7 +309,7 @@ class PipelineRunner:
|
||||
out.append((t, items_copy, subj))
|
||||
setattr(state, key, out)
|
||||
except Exception:
|
||||
pass
|
||||
debug(traceback.format_exc())
|
||||
|
||||
try:
|
||||
if "live_progress" in snapshot:
|
||||
|
||||
Reference in New Issue
Block a user