Report audio, speaker, and artifact work progress
This commit is contained in:
@@ -140,6 +140,11 @@ func (analyzeStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*S
|
||||
return nil, fmt.Errorf("analyze: checkpoint reconciled artifact collection before execution: %w", err)
|
||||
}
|
||||
|
||||
for _, item := range workPlan.ReusedCurrent {
|
||||
env.Info("artifact reuse decision", "artifact", item.Key, "reason", item.Reason, "role", item.Role)
|
||||
env.Progress("reusing artifact", "artifact", item.Key)
|
||||
}
|
||||
|
||||
for _, item := range workPlan.ExecutionOrder {
|
||||
if err := ctx.Err(); err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -103,6 +103,8 @@ func (state *analyzeExecutionState) acceptArtifact(
|
||||
state.records = manifest.CloneAnalyzeArtifactCollection(state.committedRecords)
|
||||
return fmt.Errorf("analyze: checkpoint artifact %q: %w", plan.Name, err)
|
||||
}
|
||||
state.execution.Env.Info("artifact output", "artifact", plan.Name, "source", sourceID, "path", result.Output.AbsolutePath)
|
||||
state.execution.Env.Progress("artifact completed", "artifact", plan.Name)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -461,6 +461,7 @@ func materializeS3AudioInputs(ctx context.Context, env *Env, m *manifest.Manifes
|
||||
spoolPath := filepath.Join(spoolAudioDir, base)
|
||||
workPath := filepath.Join(workAudioDir, base)
|
||||
result, err := audio.MaterializeS3Audio(ctx, audio.S3MaterializeRequest{
|
||||
Reporter: env.Reporter,
|
||||
Store: env.ObjectStore,
|
||||
Object: obj,
|
||||
Bucket: strings.TrimSpace(env.Config.Pipeline.Storage.S3.Bucket),
|
||||
|
||||
@@ -59,6 +59,13 @@ func (transcribeStage) Run(ctx context.Context, env *Env, m *manifest.Manifest)
|
||||
return nil, fmt.Errorf("transcribe: checkpoint reconciled speaker collection before execution: %w", err)
|
||||
}
|
||||
|
||||
for _, job := range reconciliation.jobs {
|
||||
if record, ok := reconciliation.current[job.speakerID]; ok {
|
||||
env.Info("speaker transcription reuse decision", "speaker", job.speakerID, "output", record.Output.LocalPath)
|
||||
env.Progress("reusing speaker transcription", "speaker", job.speakerID)
|
||||
}
|
||||
}
|
||||
|
||||
jobs := append([]transcribeReconciliationJob(nil), reconciliation.work...)
|
||||
if len(jobs) > 0 && env.WhisperX == nil {
|
||||
return nil, fmt.Errorf("transcribe: whisperx adapter is required")
|
||||
|
||||
@@ -136,6 +136,8 @@ func (state *transcribeExecutionState) acceptSpeaker(
|
||||
state.completed++
|
||||
state.perFile[job.speakerID] = cloneStringAnyMap(metadata)
|
||||
state.runOutputs[job.speakerID] = job.runOutputPath
|
||||
state.env.Info("speaker transcription output", "speaker", job.speakerID, "path", job.canonicalOutputPath)
|
||||
state.env.Progress("speaker transcription completed", "speaker", job.speakerID)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user