Skip to main content

process_task_artifacts

Function process_task_artifacts 

Source
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],
) -> ArtifactProcessResult
Expand description

Process artifacts for a completed task

§Arguments

  • task_id - The task ID
  • output - The task output as a string
  • artifact_spec - Task-level artifact configuration
  • workflow_config - Workflow-level artifact defaults
  • base_path - Base path for artifact resolution (workflow directory)
  • event_log - Optional event log for emitting artifact events
  • bindings - Resolved bindings for template resolution
  • datastore - Data store for lazy binding resolution
  • media_refs - Media files produced by the task (for binary artifact source resolution)

§Returns

ArtifactProcessResult with write status and any errors