Перенеси реализацию мессенджера из ЛР 6
Application / e2e (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
Application / unit (pull_request) Canceled after 0s

Источник — проверенное рабочее дерево ЛР 6 поверх 18878d6, включая изменения после повторного ревью. SHA-256 списка исходных файлов: e45a3d85b41feff1da78dce3f20fd1f4af1c5ee629e6ed703218bc8e21ad58fe.
This commit is contained in:
2026-11-30 10:54:41 +03:00
parent 20afc2c790
commit 8054913ef9
204 changed files with 23709 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package processing
import (
"context"
"fmt"
"path/filepath"
"messenger/internal/pipeline"
"messenger/internal/platform/faultbarrier"
)
// Only the explicit fault experiment enables these one-shot barriers.
func FileBarrier(dir string) func(context.Context, pipeline.Job, string) error {
return func(ctx context.Context, j pipeline.Job, phase string) error {
base := filepath.Join(dir, fmt.Sprintf("%s-v%d-%s", j.AttachmentID, j.PipelineVersion, phase))
return faultbarrier.Wait(ctx, base, "")
}
}