phase 1
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user