Recover incomplete session exports through durable runtime jobs

This commit is contained in:
2026-10-20 16:28:14 +01:00
parent 6841cdd2a4
commit a049b552f6
14 changed files with 960 additions and 20 deletions
+3
View File
@@ -118,6 +118,9 @@ func newRunner(ctx context.Context, s *pipeline.Store) (*runner, error) {
}
}
r := &runner{ctx: ctx, store: s, artifactsRoot: root, active: active, idents: map[int64]runIdentity{}, attentionSent: map[int64]map[string]bool{}, notifyModes: map[int64]string{}, exportSession: stage.ExportSession}
if err := r.startSessionExportJobs(); err != nil {
return nil, err
}
r.schedulerWG.Add(1)
go func() { defer r.schedulerWG.Done(); r.resumeRunNotifications() }()
return r, nil