This commit is contained in:
2026-08-16 18:59:29 +02:00
parent b617342601
commit d6fe7c38d5
5 changed files with 215 additions and 27 deletions
+5 -3
View File
@@ -602,6 +602,10 @@ func (p *Pipeline) ProcessJob(ctx context.Context, jobID uuid.UUID) error {
return nil
}
// Log before AI resolve so a hung provider lookup still leaves a start line.
log.Printf("processing: start job=%s company=%s type=%s prior_processed=%d",
jobID, companyID, processingType, alreadyProcessed)
modeLabel := AIProviderInternal
usingBYOK := false
jobEngine := p.Engine
@@ -625,9 +629,7 @@ func (p *Pipeline) ProcessJob(ctx context.Context, jobID uuid.UUID) error {
} else if label := jobEngine.EngineProviderMode(); label != "" {
modeLabel = label
}
log.Printf("processing: start job=%s company=%s type=%s mode=%s prior_processed=%d",
jobID, companyID, processingType, modeLabel, alreadyProcessed)
log.Printf("processing: provider job=%s mode=%s byok=%v", jobID, modeLabel, usingBYOK)
progress := InitialStepProgress(processingType)
if len(progress) > 0 {