pub async fn process_task_artifacts(
task_id: &str,
output: &str,
artifact_spec: &ArtifactSpec,
workflow_config: Option<&ArtifactsConfig>,
base_path: &Path,
event_log: Option<&EventLog>,
bindings: &ResolvedBindings,
datastore: &RunContext,
media_refs: &[MediaRef],
) -> ArtifactProcessResultExpand description
Process artifacts for a completed task
§Arguments
task_id- The task IDoutput- The task output as a stringartifact_spec- Task-level artifact configurationworkflow_config- Workflow-level artifact defaultsbase_path- Base path for artifact resolution (workflow directory)event_log- Optional event log for emitting artifact eventsbindings- Resolved bindings for template resolutiondatastore- Data store for lazy binding resolutionmedia_refs- Media files produced by the task (for binary artifact source resolution)
§Returns
ArtifactProcessResult with write status and any errors