generated from coulomb/repo-seed
Wire instruction report execution
This commit is contained in:
@@ -21,6 +21,7 @@ with workflow.unsafe.imports_passed_through():
|
||||
from activity_core.activities import (
|
||||
emit_tasks,
|
||||
evaluate_rules,
|
||||
evaluate_instructions,
|
||||
load_activity_definition,
|
||||
log_run,
|
||||
persist_task_instance,
|
||||
@@ -136,6 +137,19 @@ class RunActivityWorkflow:
|
||||
"condition": rule.get("condition", ""),
|
||||
})
|
||||
|
||||
if defn.get("instructions"):
|
||||
instruction_result: dict = await workflow.execute_activity(
|
||||
evaluate_instructions,
|
||||
{
|
||||
"instructions": defn.get("instructions", []),
|
||||
"event": event_attrs,
|
||||
"context": context_snapshot,
|
||||
},
|
||||
start_to_close_timeout=_ACTIVITY_TIMEOUT,
|
||||
retry_policy=_RETRY_POLICY,
|
||||
)
|
||||
task_spec_dicts.extend(instruction_result.get("task_specs", []))
|
||||
|
||||
# ── 4. Emit tasks via IssueSink ───────────────────────────────────────
|
||||
if trigger_key == SCHEDULED_TRIGGER_KEY:
|
||||
dedup_source = workflow.info().workflow_id
|
||||
|
||||
Reference in New Issue
Block a user