generated from coulomb/repo-seed
Align activity-core scope boundaries
This commit is contained in:
@@ -209,11 +209,12 @@ class RunActivityWorkflow:
|
||||
|
||||
@workflow.defn
|
||||
class TaskExecutorWorkflow:
|
||||
"""Child workflow that executes one concrete task instance.
|
||||
"""Compatibility stub for legacy task-instance workflows.
|
||||
|
||||
Stub behaviour: persists a task_instances row with status=done and
|
||||
returns immediately. Real task execution logic replaces this in a
|
||||
later workstream.
|
||||
This is not a production execution surface for activity-core. It persists a
|
||||
task_instances row with status=done and returns immediately so legacy/dev
|
||||
flows keep their idempotency behavior. Real task execution belongs in
|
||||
per-repo workers or a future execution-owned repo/workplan, not here.
|
||||
|
||||
task_id is derived deterministically from the workflow's own ID so
|
||||
persist_task_instance retries remain idempotent.
|
||||
@@ -221,7 +222,7 @@ class TaskExecutorWorkflow:
|
||||
|
||||
@workflow.run
|
||||
async def run(self, run_id: str, task_type: str, params: dict) -> dict:
|
||||
# Derive a stable task_id from this workflow's own ID.
|
||||
# Keep the stub idempotent without implying task lifecycle ownership.
|
||||
task_id = str(
|
||||
uuid.uuid5(uuid.NAMESPACE_URL, workflow.info().workflow_id)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user