Подключите RabbitMQ и отдельный обработчик заданий

This commit is contained in:
2026-11-18 15:33:33 +03:00
parent 752f29573b
commit 2dc566e6ec
19 changed files with 818 additions and 14 deletions
+11
View File
@@ -110,3 +110,14 @@ concurrency:
explain:
docker compose exec -T postgres psql -U messenger -d messenger -X -q -v ON_ERROR_STOP=1 -f - < scripts/explain-history.sql
# Set CODEC_STRESS=1 after generating bin/decoder-fixtures to include the 40 MP cases.
.PHONY: codec-test
codec-test: export GOOS = linux
codec-test: export GOARCH = $(shell docker version --format "{{.Server.Arch}}")
codec-test: export CGO_ENABLED = 0
codec-test: export MSYS_NO_PATHCONV = 1
codec-test:
go test -c -o bin/imaging.test ./internal/imaging
docker build --target worker -t mtusi-messenger-worker:lab5 .
docker run --rm --network none --cpus 2 --memory 2g --entrypoint /codec/imaging.test -e CODEC_REQUIRED=1 $(if $(filter 1,$(CODEC_STRESS)),-e CODEC_FIXTURES=/codec/decoder-fixtures,) --mount "type=bind,source=$(CURDIR)/bin,target=/codec,readonly" mtusi-messenger-worker:lab5 -test.v