This commit is contained in:
2026-03-28 08:46:06 -03:00
parent acc99e691d
commit 0bd3888155
30 changed files with 390 additions and 1044 deletions

View File

@@ -42,7 +42,7 @@ class Executor(ABC):
class LocalExecutor(Executor):
"""Execute jobs locally using registered handlers."""
"""Execute jobs locally by calling the stage function directly."""
def run(
self,
@@ -51,16 +51,10 @@ class LocalExecutor(Executor):
payload: Dict[str, Any],
progress_callback: Optional[Callable[[int, Dict[str, Any]], None]] = None,
) -> bool:
"""Execute job using the appropriate local handler."""
from .registry import get_handler
handler = get_handler(job_type)
result = handler.process(
job_id=job_id,
payload=payload,
progress_callback=progress_callback,
"""Execute job locally. Socket for PipelineRunner integration."""
raise NotImplementedError(
"LocalExecutor.run() — will be wired to PipelineRunner in Phase 3"
)
return result.get("status") == "completed"
class LambdaExecutor(Executor):