Remove RabbitMQ and use existing SignalR agent channel
This commit is contained in:
1 parent
d70ce54e65
commit
f0fb62817d
23 files changed
+85
-729
No files matched your search
@@ -10,7 +10,6 @@
|
||||
# Development example only: replace all credentials before exposure.
|
||||
# Database
|
||||
POSTGRES_PASSWORD=heimdall
|
||||
RABBITMQ_PASSWORD=heimdall-development-only
|
||||
DATABASE_URL=Host=postgresql;Port=5432;Database=heimdall;Username=heimdall;Password=heimdall
|
||||
|
||||
# JWT (change in production!)
|
||||
|
||||
@@ -76,11 +76,6 @@ services:
|
||||
heimdall:
|
||||
image: eltruncho/heimdall:latest
|
||||
environment:
|
||||
# MassTransit / RabbitMQ
|
||||
RABBITMQ__HOST: rabbitmq
|
||||
RABBITMQ__PORT: "5672"
|
||||
RABBITMQ__USER: ${RABBITMQ_USER:-heimdall}
|
||||
RABBITMQ__PASSWORD_FILE: /run/secrets/rabbitmq_password
|
||||
# Database (password from secret, rest from env)
|
||||
DATABASE_URL: ${DATABASE_URL:?DATABASE_URL is required}
|
||||
# JWT (keys from secrets)
|
||||
@@ -158,11 +153,6 @@ services:
|
||||
Agent__AgentName: ${HEIMDALL_AGENT_NAME:-agent-01}
|
||||
Agent__HeartbeatIntervalSeconds: ${HEIMDALL_HEARTBEAT_INTERVAL:-30}
|
||||
Agent__StateDirectory: /var/lib/heimdall
|
||||
# MassTransit / RabbitMQ — host network can't resolve Docker DNS
|
||||
RABBITMQ__HOST: ${RABBITMQ_HOST:-localhost}
|
||||
RABBITMQ__PORT: ${RABBITMQ_PORT:-5672}
|
||||
RABBITMQ__USER: ${RABBITMQ_USER:-heimdall}
|
||||
RABBITMQ__PASSWORD: ${RABBITMQ_PASSWORD:?RABBITMQ_PASSWORD is required}
|
||||
# ONNX Runtime GPU provider selection
|
||||
ORT_PROVIDER: ${AGENT_ORT_PROVIDER:-CUDA}
|
||||
ORT_CUDA_DEVICE_ID: ${AGENT_CUDA_DEVICE_ID:-0}
|
||||
@@ -203,27 +193,6 @@ services:
|
||||
logging: *default-logging
|
||||
# no networks: host networking
|
||||
|
||||
rabbitmq:
|
||||
image: rabbitmq:3-management
|
||||
hostname: rabbitmq
|
||||
environment:
|
||||
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER:-heimdall}
|
||||
RABBITMQ_DEFAULT_PASS_FILE: /run/secrets/rabbitmq_password
|
||||
secrets:
|
||||
- rabbitmq_password
|
||||
volumes:
|
||||
- rabbitmq_data:/var/lib/rabbitmq
|
||||
healthcheck:
|
||||
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
networks:
|
||||
- heimdall-net
|
||||
|
||||
# ── Backup service (opt-in via --profile backup) ───────────────
|
||||
|
||||
backup:
|
||||
@@ -377,8 +346,6 @@ volumes:
|
||||
driver: local
|
||||
redis_data:
|
||||
driver: local
|
||||
rabbitmq_data:
|
||||
driver: local
|
||||
backup_data:
|
||||
driver: local
|
||||
|
||||
@@ -397,8 +364,6 @@ secrets:
|
||||
file: ./secrets/rustfs_secret_key
|
||||
smtp_password:
|
||||
file: ./secrets/smtp_password
|
||||
rabbitmq_password:
|
||||
file: ./secrets/rabbitmq_password
|
||||
|
||||
networks:
|
||||
heimdall-net:
|
||||
|
||||
@@ -61,11 +61,6 @@ services:
|
||||
dockerfile: docker/Dockerfile
|
||||
image: heimdall:latest
|
||||
environment:
|
||||
# MassTransit / RabbitMQ
|
||||
RABBITMQ__HOST: rabbitmq
|
||||
RABBITMQ__PORT: "5672"
|
||||
RABBITMQ__USER: ${RABBITMQ_USER:-heimdall}
|
||||
RABBITMQ__PASSWORD: ${RABBITMQ_PASSWORD:?RABBITMQ_PASSWORD is required}
|
||||
# Database
|
||||
DATABASE_URL: ${DATABASE_URL:?DATABASE_URL is required}
|
||||
# JWT
|
||||
@@ -139,11 +134,6 @@ services:
|
||||
Agent__HeartbeatIntervalSeconds: ${HEIMDALL_HEARTBEAT_INTERVAL:-30}
|
||||
Agent__StateDirectory: /var/lib/heimdall
|
||||
Agent__RegistrationMaxRetries: ${HEIMDALL_REGISTRATION_RETRIES:-5}
|
||||
# MassTransit / RabbitMQ — host network can't resolve Docker DNS
|
||||
RABBITMQ__HOST: ${RABBITMQ_HOST:-localhost}
|
||||
RABBITMQ__PORT: ${RABBITMQ_PORT:-5672}
|
||||
RABBITMQ__USER: ${RABBITMQ_USER:-heimdall}
|
||||
RABBITMQ__PASSWORD: ${RABBITMQ_PASSWORD:?RABBITMQ_PASSWORD is required}
|
||||
# ONNX Runtime GPU provider selection
|
||||
ORT_PROVIDER: ${AGENT_ORT_PROVIDER:-CUDA}
|
||||
ORT_CUDA_DEVICE_ID: ${AGENT_CUDA_DEVICE_ID:-0}
|
||||
@@ -184,28 +174,6 @@ services:
|
||||
logging: *default-logging
|
||||
# no networks: host networking
|
||||
|
||||
rabbitmq:
|
||||
image: rabbitmq:3-management
|
||||
hostname: rabbitmq
|
||||
environment:
|
||||
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER:-heimdall}
|
||||
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD:?RABBITMQ_PASSWORD is required}
|
||||
ports:
|
||||
- "${RABBITMQ_PORT:-5672}:5672"
|
||||
- "${RABBITMQ_MGMT_PORT:-15672}:15672"
|
||||
volumes:
|
||||
- rabbitmq_data:/var/lib/rabbitmq
|
||||
healthcheck:
|
||||
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
networks:
|
||||
- heimdall-net
|
||||
|
||||
# ── Optional services (dev) ────────────────────────────────────
|
||||
|
||||
coturn:
|
||||
@@ -272,8 +240,6 @@ volumes:
|
||||
driver: local
|
||||
redis_data:
|
||||
driver: local
|
||||
rabbitmq_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
heimdall-net:
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
# Audit RabbitMQ / MassTransit — 2026-10-21
|
||||
|
||||
## Conclusion
|
||||
|
||||
RabbitMQ n'est pas actuellement une dépendance fonctionnelle du parcours d'analyse caméra en production dans l'état du code audité. Il est configuré dans Central et dans chaque Agent, mais les liaisons qui feraient circuler les travaux et leurs résultats ne sont pas implémentées. Le mode d'analyse réellement raccordé est local sur chaque Agent (YOLO/ONNX), qui rapporte ensuite ses détections à Central par les services HTTP/SignalR existants.
|
||||
|
||||
RabbitMQ a une utilité potentielle si Heimdall veut distribuer des travaux discrets et durables à des Agents derrière NAT, particulièrement pour une analyse déclenchée à la demande. Il n'est pas un bon transport pour le flux vidéo continu. Tant que le planificateur distribué n'est pas achevé, le broker ajoute du déploiement, des secrets, une panne possible et des dépendances .NET sans fournir cette capacité. Recommandation : le retirer du chemin par défaut et le réintroduire seulement avec un flux distribué complet. Pour garder une architecture distribuée maintenant, conserver un Agent par site qui analyse localement et communique avec Central par HTTPS/SignalR.
|
||||
|
||||
## Périmètre et preuves
|
||||
|
||||
Recherche des références dans le code, les projets, Compose, CI, configuration d'environnement, README et audits existants. Les fichiers `packages.lock.json` des tests contiennent les dépendances transitives de MassTransit, ce qui ne constitue pas un usage applicatif supplémentaire. Aucun fichier de configuration de broker externe ou autre service consommateur n'a été trouvé dans le dépôt.
|
||||
|
||||
## Usages observés
|
||||
|
||||
| Zone | Usage présent | Évaluation |
|
||||
|---|---|---|
|
||||
| Central / Web | `AddHeimdallMassTransit` configure un hôte RabbitMQ et enregistre MassTransit. Aucun consommateur Central n'est enregistré et aucun `IPublishEndpoint` n'est utilisé. | Connexion et surcharge de runtime sans trajet d'analyse achevé. |
|
||||
| Agent | `AddHeimdallAgentMassTransit` enregistre `AnalysisJobConsumer`, qui sait analyser un message et publier une réponse. | Consommateur isolé : le code Central ne lui envoie pas de travail. |
|
||||
| Contrats | `AnalysisJobRequested` transporte une frame JPEG en Base64; les contrats Completed/Failed décrivent les retours. | Conception prévue, pas une intégration fonctionnelle. Encoder une image en Base64 augmente sa taille d'environ un tiers et le broker transporte alors les octets eux-mêmes. |
|
||||
| Planification | `AnalysisJobSchedulerService` choisit l'Agent, marque `Dispatched`, et gère les statuts/reprises en base. `AnalysisJobDispatcherJob` est lancé via Hangfire/PostgreSQL. | `DispatchJobAsync` ne publie pas de message; le résultat ne revient jamais mettre à jour la ligne. L'état peut rester Dispatched jusqu'au sweep de timeout. |
|
||||
| Pipeline vidéo | `SnapshotPipelineService` appelle directement `FrameAnalyzerService` en mode Local. Le chemin HTTP `RemoteFrameBrokerService` est facultatif et attend un broker externe `/api/frames` absent du dépôt. | Ni l'analyse locale ni le mode HTTP documenté ne dépendent de RabbitMQ. |
|
||||
| Déploiement | RabbitMQ est un conteneur dans les deux Compose, avec port 5672, interface management en dev, volume et healthcheck. Central et l'Agent reçoivent des variables et mots de passe. | Charge opérationnelle obligatoire alors que le chemin de production actif est local. L'Agent utilise `network_mode: host` et doit atteindre un port exposé sur l'hôte. |
|
||||
| CI / docs | Le validateur Compose exige `RABBITMQ_PASSWORD`; README documente le service, les secrets et MassTransit. | Une suppression doit nettoyer également ces contrats opératoires et les exemples. |
|
||||
|
||||
## Défauts qui empêchent l'usage effectif
|
||||
|
||||
1. **Aucune publication de requête** : la recherche d'usage `AnalysisJobRequested` ne trouve que le contrat, les commentaires et le consommateur. La transition en base vers Dispatched n'émet rien.
|
||||
2. **Aucun retour consommé par Central** : les handlers Completed/Failed ne sont pas enregistrés. Aucun appel ne raccorde les réponses au scheduler.
|
||||
3. **Aucune création de jobs branchée** : aucun appel applicatif à `CreateJobAsync` n'est trouvé hors sa définition. Le planificateur Hangfire peut parcourir des jobs en attente, mais le producteur en amont manque.
|
||||
4. **Routage multi-agent incorrect** : les Agents utilisent la même convention de queue MassTransit; le message contient un `AgentId`, puis chaque Agent non ciblé retourne normalement. Un message pris par le mauvais Agent est acquitté et perdu. Le seul contrôle `ConcurrentMessageLimit=1` limite chaque processus, pas la charge globale ni le routage.
|
||||
5. **Résultat métier incomplet** : le consommateur publie seulement un compte, une confiance moyenne et un JSON facultatif; il n'alimente pas les handlers existants de détection/événement.
|
||||
6. **Configuration fragile** : les classes de configuration ont des fallbacks de mot de passe codés en dur; en production Central utilise un fichier secret mais l'Agent en réseau host reçoit `RABBITMQ_PASSWORD` de l'environnement. Il faut vérifier cette divergence avec le déploiement réel.
|
||||
7. **Résilience double et non coordonnée** : MassTransit/RabbitMQ porte ses propres livraisons tandis que Hangfire et `AnalysisJobs` gèrent reprise et délai. Sans outbox/idempotence et transitions atomiques, les futures publications peuvent perdre ou dupliquer des demandes.
|
||||
|
||||
Ces constats rejoignent les points PIPE-01 et PIPE-02 de l'audit complet existant.
|
||||
|
||||
## Utilité au regard des exigences
|
||||
|
||||
RabbitMQ résout bien le découplage temporel, la mise en file durable et le routage vers des travailleurs distribués. Cela peut compter lorsque Central doit soumettre des travaux ponctuels sans connaître la disponibilité immédiate des Agents, ou lorsqu'il faut lisser une charge variable. Le lien sortant persistant d'un Agent derrière NAT permet aussi d'éviter d'exposer un port entrant sur le site.
|
||||
|
||||
Mais le fonctionnement distribué n'exige pas à lui seul un broker. Les Agents actuels sont déjà des processus/services séparés, capturent les caméras localement et communiquent vers Central. Le traitement local évite de déplacer des frames, réduit la latence et garde le flux vidéo sur le site. Pour l'état présent et le scénario de surveillance continue, le coût RabbitMQ n'est donc pas compensé par un besoin actif.
|
||||
|
||||
## Options pour réduire la complexité tout en restant distribué
|
||||
|
||||
### A. Recommandée à court terme : Agent autonome par site, API Central
|
||||
|
||||
Conserver les Agents distribués, la capture et l'inférence locale, la configuration/heartbeat/détections remontés à Central par HTTPS et SignalR. Désactiver le service RabbitMQ, retirer MassTransit et les contrats non utilisés, variables/secrets/port/volume/healthcheck Compose et exigence CI. Désactiver ou retirer la planification `AnalysisJobs` inachevée. C'est le modèle qui correspond le mieux au chemin déjà exécuté.
|
||||
|
||||
Pour les rares commandes ponctuelles, utiliser une commande HTTP via le canal de contrôle existant (ou SignalR avec accusé/résultat) si l'Agent maintient une connexion sortante. Garder les payloads d'image hors du canal de contrôle : l'Agent analyse le flux local et ne remonte que la détection ou une référence vers un objet stocké.
|
||||
|
||||
### B. File PostgreSQL/Hangfire, si une file durable centralisée est nécessaire
|
||||
|
||||
PostgreSQL existe déjà et Hangfire y stocke les jobs. Ajouter une table d'outbox/job réclamable par Agent sur son canal sortant HTTPS (polling avec bail/lease, ou notifications PostgreSQL pour réveil avec polling de secours). PostgreSQL est la source de vérité, y compris statut, retries et résultat; un seul mécanisme porte la reprise. Cette option évite un service et des credentials supplémentaires, mais impose de concevoir proprement le claim concurrent, les leases, l'idempotence, les payloads et le débit. `LISTEN/NOTIFY` seul n'est pas une file durable.
|
||||
|
||||
### C. Garder RabbitMQ uniquement après une décision de produit explicite
|
||||
|
||||
Si les Agents doivent recevoir des tâches distantes asynchrones à haut débit, RabbitMQ reste un choix défendable. Il faut d'abord achever une verticale : création → outbox → publication ciblée par Agent/site → consommation/idempotence → publication résultat → consommation Central → persistance métier, avec tests à deux Agents, reprise, perte du broker et déduplication. Préférer une adresse/queue propre à l'Agent ou un routage par site. Tant que ces critères ne sont pas satisfaits, ne pas le déclarer nécessaire au système.
|
||||
|
||||
## Recommandation
|
||||
|
||||
Décision exécutée : **retirer RabbitMQ/MassTransit du déploiement standard**, car aucun flux actif ne l'utilisait. La distribution reste assurée par les Agents autonomes, l'analyse locale, les appels HTTPS sortants et le canal SignalR persistant.
|
||||
|
||||
## Suite donnée — suppression du broker
|
||||
|
||||
Le 2026-10-21, la configuration et les dépendances MassTransit/RabbitMQ, le service Compose, ses secrets/ports/volumes et le consommateur Agent ont été retirés. La liaison SignalR existante `/hubs/config` reste le canal Central→Agent : les Agents l'ouvrent en sortie avec leur clé API, se reconnectent automatiquement et reçoivent les commandes de configuration, scan et mise à jour. Les heartbeats et événements continuent à remonter par HTTPS.
|
||||
|
||||
Le déclenchement périodique de jobs d'analyse Hangfire est aussi désactivé : il ne faisait que marquer les jobs comme distribués sans transmettre de charge utile. Les jobs historiques conservent leur balayage de timeout. L'analyse caméra actuellement active reste locale à l'Agent; la distribution de jobs d'analyse à la demande n'est donc pas activée par cette suppression.
|
||||
|
||||
Le consommateur d'analyse supprimé n'avait pas de producteur Central et Central n'avait pas de consommateur de résultats. L'interface `AnalysisJobs` existante ne transporte pas de frame capturée et n'est pas une capacité d'analyse distribuée active. Elle reste à traiter séparément avant d'annoncer la distribution de jobs d'analyse à la demande. SignalR est un canal temps réel, pas une file durable : des commandes qui doivent survivre à une déconnexion devront être persistées dans PostgreSQL, avec accusé et reprise à la reconnexion.
|
||||
|
||||
## Fichiers de référence
|
||||
|
||||
- `src/Heimdall.Infrastructure/Services/AnalysisJobSchedulerService.cs`
|
||||
- `src/Heimdall.Infrastructure/Jobs/AnalysisJobDispatcherJob.cs`
|
||||
- `src/Heimdall.Agent/Services/SnapshotPipelineService.cs`
|
||||
- `src/Heimdall.Agent/Services/RemoteFrameBrokerService.cs`
|
||||
- `docker/docker-compose.yml`, `docker/docker-compose.prod.yml`, `scripts/ci/validate-compose.sh`
|
||||
- `docs/audits/2026-10-20-audit-complet.md` (PIPE-01/02)
|
||||
@@ -104,7 +104,7 @@ Le dossier `docker/` contient tout nécessaire pour déployer Heimdall :
|
||||
| `docker-compose.local.yml` | Surcharges locales | Ajustements optionnels, par exemple l'exposition d'un GPU |
|
||||
| `Dockerfile` | Build | Image Central (UI + API + jobs) |
|
||||
| `Dockerfile.agent` | Build | Image agent avec FFmpeg |
|
||||
| `docker/secrets/` | Production | Clés secrètes (JWT, DB, RabbitMQ, Coturn, etc.) |
|
||||
| `docker/secrets/` | Production | Clés secrètes (JWT, DB, Coturn, etc.) |
|
||||
|
||||
### Services
|
||||
|
||||
@@ -115,7 +115,6 @@ Le dossier `docker/` contient tout nécessaire pour déployer Heimdall :
|
||||
| `heimdall` | `heimdall:latest` (dev) / `eltruncho/heimdall:latest` (prod) | 5000 | postgresql (healthy) |
|
||||
| `heimdall-agent` | `heimdall-agent:latest` (dev) / `eltruncho/heimdall-agent:latest` (prod) | — | heimdall |
|
||||
| `ntfy` | `binwiederhier/ntfy` | 8080 | — |
|
||||
| `rabbitmq` | `rabbitmq:3-management` | 5672/15672 | — |
|
||||
| `coturn` | `coturn/coturn:4.6` | 3478 | — |
|
||||
| `ollama` | `ollama/ollama:latest` | 11434 | — |
|
||||
| `redis` | `redis:7-alpine` | 6379 | — |
|
||||
@@ -131,7 +130,6 @@ Le dossier `docker/` contient tout nécessaire pour déployer Heimdall :
|
||||
| `ntfy_data` | `/var/lib/ntfy` | Notifications ntfy |
|
||||
| `ollama_data` | `/root/.ollama` | Modèles LLM |
|
||||
| `redis_data` | `/data` | Cache Redis |
|
||||
| `rabbitmq_data` | `/var/lib/rabbitmq` | Messages RabbitMQ |
|
||||
|
||||
### Réseau
|
||||
|
||||
@@ -154,7 +152,7 @@ se fait par noms de service (ex: `http://heimdall:8080`). L'agent utilise le ré
|
||||
| `ASPNETCORE_ENVIRONMENT` | `Production` | heimdall, agent | Environnement .NET |
|
||||
| `Cors__AllowedOrigins` | `*` | heimdall | Origines CORS |
|
||||
| `SENTRY_DSN` | `(optional)` | heimdall, agent | Sentry/GlitchTip DSN |
|
||||
| `HEIMDALL_CENTRAL_URL` | `http://localhost:5010` | agent | URL publique du Central (API + UI) |
|
||||
| `HEIMDALL_CENTRAL_URL` | `http://localhost:5010` | agent | URL du Central (API, UI et SignalR sortant) |
|
||||
| `HEIMDALL_SITE_TOKEN` | (required for agent) | agent | Token d'enregistrement |
|
||||
| `HEIMDALL_AGENT_NAME` | `agent-01` | agent | Nom de l'agent |
|
||||
| `HEIMDALL_HEARTBEAT_INTERVAL` | `30` | agent | Intervalle heartbeat (s) |
|
||||
@@ -164,8 +162,6 @@ se fait par noms de service (ex: `http://heimdall:8080`). L'agent utilise le ré
|
||||
| `RUSTFS_ACCESS_KEY` | `heimdall` | rustfs | Identifiant S3 et console |
|
||||
| `RUSTFS_SECRET_KEY` | (required) | rustfs | Secret S3 et console |
|
||||
| `WEB_PORT` | `5000` | heimdall | Port exposé (API + UI unifiés) |
|
||||
| `RABBITMQ_USER` | `heimdall` | heimdall, agent | Utilisateur RabbitMQ |
|
||||
| `RABBITMQ_PASSWORD` | `heimdall123` | heimdall, agent | Password RabbitMQ |
|
||||
| `COTURN_SECRET` | (required) | coturn | Secret TURN |
|
||||
| `OLLAMA_PORT` | `11434` | ollama | Port Ollama |
|
||||
|
||||
@@ -306,7 +302,6 @@ La solution inclut les tests du domaine, de l’application, de l’infrastructu
|
||||
| Hangfire | 1.8.17 |
|
||||
| RustFS (S3) | latest |
|
||||
| SignalR | 10.0 |
|
||||
| MassTransit / RabbitMQ | 8.x / 3.x |
|
||||
| SIPSorcery (WebRTC) | 10.0 |
|
||||
| ONNX Runtime | 1.20+ |
|
||||
| xUnit + Shouldly | — |
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
using System.Diagnostics;
|
||||
using Heimdall.Contracts;
|
||||
using Heimdall.Agent.Services;
|
||||
using MassTransit;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Heimdall.Agent;
|
||||
|
||||
/// <summary>
|
||||
/// MassTransit consumer that processes <see cref="AnalysisJobRequested"/> messages.
|
||||
/// When the Central dispatches an analysis job via RabbitMQ, this consumer runs the
|
||||
/// local AI pipeline (YOLO/ONNX) on the provided frame and publishes a completion
|
||||
/// or failure message back to the Central.
|
||||
///
|
||||
/// Configuration: PrefetchCount=1, ConcurrentMessageLimit=1 (one job at a time)
|
||||
/// to avoid overloading the agent's GPU/CPU resources.
|
||||
/// </summary>
|
||||
public sealed class AnalysisJobConsumer : IConsumer<AnalysisJobRequested>
|
||||
{
|
||||
private readonly FrameAnalyzerService _frameAnalyzer;
|
||||
private readonly AgentState _state;
|
||||
private readonly ILogger<AnalysisJobConsumer> _logger;
|
||||
|
||||
public AnalysisJobConsumer(
|
||||
FrameAnalyzerService frameAnalyzer,
|
||||
AgentState state,
|
||||
ILogger<AnalysisJobConsumer> logger)
|
||||
{
|
||||
_frameAnalyzer = frameAnalyzer;
|
||||
_state = state;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public async Task Consume(ConsumeContext<AnalysisJobRequested> context)
|
||||
{
|
||||
var job = context.Message;
|
||||
var agentId = _state.AgentId;
|
||||
|
||||
if (agentId == Guid.Empty)
|
||||
{
|
||||
_logger.LogWarning(
|
||||
"Ignoring analysis job {JobId}: agent not registered yet",
|
||||
job.Id);
|
||||
await context.Publish(new AnalysisJobFailed
|
||||
{
|
||||
JobId = job.Id,
|
||||
Reason = "Agent not registered",
|
||||
IsTransient = true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (agentId != job.AgentId)
|
||||
{
|
||||
_logger.LogDebug(
|
||||
"Ignoring analysis job {JobId}: assigned to agent {TargetAgentId}, not {LocalAgentId}",
|
||||
job.Id, job.AgentId, agentId);
|
||||
return;
|
||||
}
|
||||
|
||||
_logger.LogInformation(
|
||||
"Processing analysis job {JobId} for camera {CameraId} (site {SiteId})",
|
||||
job.Id, job.CameraId, job.SiteId);
|
||||
|
||||
var stopwatch = Stopwatch.StartNew();
|
||||
|
||||
try
|
||||
{
|
||||
// Decode the Base64 frame data
|
||||
var frameData = Convert.FromBase64String(job.FrameData);
|
||||
|
||||
// Run the local AI analysis pipeline
|
||||
var result = await _frameAnalyzer.AnalyzeFrameAsync(
|
||||
frameData, ct: context.CancellationToken);
|
||||
|
||||
if (result is null)
|
||||
throw new InvalidOperationException("Inference unavailable, skipped or saturated; no detection result produced");
|
||||
|
||||
stopwatch.Stop();
|
||||
|
||||
var detections = result?.Detections;
|
||||
var detectionCount = detections?.Count ?? 0;
|
||||
var averageConfidence = detectionCount > 0
|
||||
? detections!.Average(d => d.Confidence)
|
||||
: 0.0;
|
||||
|
||||
_logger.LogInformation(
|
||||
"Job {JobId} completed: {DetectionCount} detections, {Confidence:P0} confidence, {Duration}ms",
|
||||
job.Id, detectionCount, averageConfidence, stopwatch.ElapsedMilliseconds);
|
||||
|
||||
// Publish completion back to the Central
|
||||
await context.Publish(new AnalysisJobCompleted
|
||||
{
|
||||
JobId = job.Id,
|
||||
Detections = detectionCount,
|
||||
Confidence = averageConfidence,
|
||||
DurationMs = stopwatch.ElapsedMilliseconds,
|
||||
DetectionDetails = detectionCount > 0
|
||||
? System.Text.Json.JsonSerializer.Serialize(detections)
|
||||
: null,
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
stopwatch.Stop();
|
||||
|
||||
_logger.LogError(ex,
|
||||
"Job {JobId} failed after {Duration}ms: {Reason}",
|
||||
job.Id, stopwatch.ElapsedMilliseconds, ex.Message);
|
||||
|
||||
await context.Publish(new AnalysisJobFailed
|
||||
{
|
||||
JobId = job.Id,
|
||||
Reason = ex.Message,
|
||||
IsTransient = IsTransientException(ex),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private static bool IsTransientException(Exception ex) => ex switch
|
||||
{
|
||||
TimeoutException => true,
|
||||
OperationCanceledException => true,
|
||||
System.Net.Http.HttpRequestException => true,
|
||||
System.IO.IOException => true,
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
@@ -29,7 +29,5 @@
|
||||
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.17.0" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="6.8.0" />
|
||||
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.16.0" />
|
||||
<PackageReference Include="MassTransit" Version="8.3.6" />
|
||||
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.6" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,69 +0,0 @@
|
||||
using System.Globalization;
|
||||
using Heimdall.Agent.Services;
|
||||
using Heimdall.Contracts;
|
||||
using MassTransit;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Heimdall.Agent;
|
||||
|
||||
/// <summary>
|
||||
/// Configures MassTransit with RabbitMQ transport for the Agent (consumer).
|
||||
/// The Agent consumes <see cref="AnalysisJobRequested"/> messages dispatched by
|
||||
/// the Central, runs the local AI pipeline, and publishes
|
||||
/// <see cref="AnalysisJobCompleted"/> or <see cref="AnalysisJobFailed"/>.
|
||||
/// </summary>
|
||||
public static class MassTransitConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration section name for RabbitMQ settings.
|
||||
/// </summary>
|
||||
private const string SectionName = "RabbitMQ";
|
||||
|
||||
/// <summary>
|
||||
/// Adds MassTransit with RabbitMQ transport for the Agent (consumer + publisher).
|
||||
/// Registers <see cref="AnalysisJobConsumer"/> to process incoming analysis requests.
|
||||
/// Concurrency is limited to 1 message at a time to avoid overloading GPU/CPU.
|
||||
/// </summary>
|
||||
public static IServiceCollection AddHeimdallAgentMassTransit(
|
||||
this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{
|
||||
var host = configuration[$"{SectionName}:Host"]
|
||||
?? Environment.GetEnvironmentVariable("RABBITMQ__HOST")
|
||||
?? "localhost";
|
||||
var port = configuration.GetValue<int>($"{SectionName}:Port",
|
||||
int.Parse(
|
||||
Environment.GetEnvironmentVariable("RABBITMQ__PORT") ?? "5672",
|
||||
CultureInfo.InvariantCulture));
|
||||
var user = configuration[$"{SectionName}:User"]
|
||||
?? Environment.GetEnvironmentVariable("RABBITMQ__USER")
|
||||
?? "heimdall";
|
||||
var password = configuration[$"{SectionName}:Password"]
|
||||
?? Environment.GetEnvironmentVariable("RABBITMQ__PASSWORD")
|
||||
?? "heimdall123";
|
||||
|
||||
services.AddMassTransit(x =>
|
||||
{
|
||||
x.AddConsumer<AnalysisJobConsumer>(cfg =>
|
||||
{
|
||||
cfg.ConcurrentMessageLimit = 1;
|
||||
});
|
||||
|
||||
x.UsingRabbitMq((context, cfg) =>
|
||||
{
|
||||
cfg.Host(host, (ushort)port, "/", h =>
|
||||
{
|
||||
h.Username(user);
|
||||
h.Password(password);
|
||||
});
|
||||
|
||||
cfg.ConfigureEndpoints(context);
|
||||
});
|
||||
});
|
||||
|
||||
Console.WriteLine($"[DIAG] MassTransit Agent RabbitMQ: host={host}:{port}, user={user}");
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
@@ -157,9 +157,6 @@ builder.Services.AddHealthChecks()
|
||||
.AddCheck<AgentHealthCheck>("agent_health", tags: ["ready"])
|
||||
.AddCheck<LiveHealthCheck>("live", tags: ["live"]);
|
||||
|
||||
// MassTransit + RabbitMQ — consume AnalysisJobRequested, publish results
|
||||
builder.Services.AddHeimdallAgentMassTransit(builder.Configuration);
|
||||
|
||||
// ── OpenTelemetry metrics (spec 13.1) ──────────────────────────────
|
||||
builder.Services.AddOpenTelemetry()
|
||||
.WithMetrics(metrics =>
|
||||
|
||||
@@ -11,25 +11,6 @@
|
||||
"Magick.NET.Core": "14.16.0"
|
||||
}
|
||||
},
|
||||
"MassTransit": {
|
||||
"type": "Direct",
|
||||
"requested": "[8.3.6, )",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "iQQ02dUJuWlpNai3eDN7WmnstvmB2LAD8YN1i8OFT5BaNpGYYg3v0US3S6f1Zz7us+NnGHm6csg25Ak3z0H7Xg==",
|
||||
"dependencies": {
|
||||
"MassTransit.Abstractions": "8.3.6"
|
||||
}
|
||||
},
|
||||
"MassTransit.RabbitMQ": {
|
||||
"type": "Direct",
|
||||
"requested": "[8.3.6, )",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "gR67/f8reudNVUf0yDdUBuDLBFjDdqCSF8K3XaIlpHSRmmCUTBVPVrt0h65/Zty00okBHzcbUX32bLZeQL51sw==",
|
||||
"dependencies": {
|
||||
"MassTransit": "8.3.6",
|
||||
"RabbitMQ.Client": "7.0.0"
|
||||
}
|
||||
},
|
||||
"Microsoft.AspNetCore.SignalR.Client": {
|
||||
"type": "Direct",
|
||||
"requested": "[10.0.13, )",
|
||||
@@ -111,11 +92,6 @@
|
||||
"resolved": "14.16.0",
|
||||
"contentHash": "ddBX/Zb0sCsX4agqHdHeqUx+grfw8I7GFU+lgut3mtNl7roxbxemSQFGLIJXtzwPuAHxbaMtkXA+ijVl02EUhQ=="
|
||||
},
|
||||
"MassTransit.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "F3R3EFPvUvpsiebnijmpvZ4IhSEcqkEJdrhlFuTOjzIUnMRYBgki/oDfFWj57Ki4b9yq0nilt4Q5bk11pC4ygg=="
|
||||
},
|
||||
"MediatR": {
|
||||
"type": "Transitive",
|
||||
"resolved": "12.5.0",
|
||||
@@ -242,11 +218,6 @@
|
||||
"OpenTelemetry.Api": "1.17.0"
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client": {
|
||||
"type": "Transitive",
|
||||
"resolved": "7.0.0",
|
||||
"contentHash": "8YJz22mOSMtkbIVuVSz2HbJwbpKwRoXQ1uqbczDUt1w1Ds8dxFs6dkV/oZ8AlTmkErZjtQelHv+oBu52ud00WA=="
|
||||
},
|
||||
"Sentry": {
|
||||
"type": "Transitive",
|
||||
"resolved": "6.8.0",
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
namespace Heimdall.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// Message published by an agent after a successful analysis.
|
||||
/// The Central consumes this message to persist detections and update camera state.
|
||||
/// </summary>
|
||||
public sealed record AnalysisJobCompleted
|
||||
{
|
||||
/// <summary>Identifier of the job that completed (matches <see cref="AnalysisJobRequested.Id"/>).</summary>
|
||||
public required Guid JobId { get; init; }
|
||||
|
||||
/// <summary>Number of objects detected in the frame.</summary>
|
||||
public int Detections { get; init; }
|
||||
|
||||
/// <summary>Average confidence of detections (0.0 – 1.0).</summary>
|
||||
public double Confidence { get; init; }
|
||||
|
||||
/// <summary>Duration of the analysis in milliseconds.</summary>
|
||||
public long DurationMs { get; init; }
|
||||
|
||||
/// <summary>Optional serialised detection details (labels, bounding boxes).</summary>
|
||||
public string? DetectionDetails { get; init; }
|
||||
|
||||
/// <summary>Timestamp when the analysis completed (UTC).</summary>
|
||||
public DateTime CompletedAtUtc { get; init; } = DateTime.UtcNow;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
namespace Heimdall.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// Message published by an agent when an analysis job fails.
|
||||
/// The Central consumes this message for logging and retry decisions.
|
||||
/// </summary>
|
||||
public sealed record AnalysisJobFailed
|
||||
{
|
||||
/// <summary>Identifier of the job that failed (matches <see cref="AnalysisJobRequested.Id"/>).</summary>
|
||||
public required Guid JobId { get; init; }
|
||||
|
||||
/// <summary>Human-readable description of the failure reason.</summary>
|
||||
public required string Reason { get; init; }
|
||||
|
||||
/// <summary>Whether the failure is transient and the job may be retried.</summary>
|
||||
public bool IsTransient { get; init; }
|
||||
|
||||
/// <summary>Timestamp when the failure occurred (UTC).</summary>
|
||||
public DateTime FailedAtUtc { get; init; } = DateTime.UtcNow;
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
namespace Heimdall.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// Message published by the Central to request an analysis job from an agent.
|
||||
/// The agent consumes this message and runs the AI pipeline (YOLO/ONNX) on the
|
||||
/// provided frame data, then publishes <see cref="AnalysisJobCompleted"/> or
|
||||
/// <see cref="AnalysisJobFailed"/>.
|
||||
/// </summary>
|
||||
public sealed record AnalysisJobRequested
|
||||
{
|
||||
/// <summary>Unique identifier for this analysis job.</summary>
|
||||
public Guid Id { get; init; } = Guid.NewGuid();
|
||||
|
||||
/// <summary>Identifier of the camera whose frame is to be analysed.</summary>
|
||||
public required Guid CameraId { get; init; }
|
||||
|
||||
/// <summary>Identifier of the site the camera belongs to.</summary>
|
||||
public required Guid SiteId { get; init; }
|
||||
|
||||
/// <summary>Identifier of the target agent that should run the analysis.</summary>
|
||||
public required Guid AgentId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Base64-encoded JPEG frame data to analyse.
|
||||
/// Agents behind NAT receive the frame through AMQP rather than pulling it
|
||||
/// via HTTPS — avoids requiring inbound connectivity to the Central.
|
||||
/// </summary>
|
||||
public required string FrameData { get; init; }
|
||||
|
||||
/// <summary>Optional metadata (model override, confidence threshold, etc.).</summary>
|
||||
public Dictionary<string, string>? Metadata { get; init; }
|
||||
|
||||
/// <summary>Timestamp when the job was created (UTC).</summary>
|
||||
public DateTime RequestedAtUtc { get; init; } = DateTime.UtcNow;
|
||||
}
|
||||
@@ -53,13 +53,8 @@ public static class JobSetup
|
||||
job => job.ExecuteAsync(CancellationToken.None),
|
||||
"0 7 * * 0"); // Sunday at 7:00
|
||||
|
||||
// Analysis job dispatcher — process pending jobs every 30s
|
||||
manager.AddOrUpdate<AnalysisJobDispatcherJob>(
|
||||
"analysis-job-dispatch",
|
||||
job => job.ExecuteAsync(CancellationToken.None),
|
||||
"*/30 * * * * *"); // Every 30 seconds
|
||||
|
||||
// Timeout sweep — clean up stuck jobs every 60s
|
||||
// Legacy analysis job timeout cleanup. Dispatch stays disabled until the
|
||||
// Agent job path is implemented over the authenticated SignalR channel.
|
||||
manager.AddOrUpdate<AnalysisJobDispatcherJob>(
|
||||
"analysis-job-timeout-sweep",
|
||||
job => job.ExecuteTimeoutSweepAsync(CancellationToken.None),
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.17.0" />
|
||||
<PackageReference Include="Scalar.AspNetCore" Version="2.0.2" />
|
||||
<PackageReference Include="Hangfire.PostgreSql" Version="1.21.1" />
|
||||
<PackageReference Include="MassTransit" Version="8.3.6" />
|
||||
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.6" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.13" />
|
||||
<PackageReference Include="MudBlazor" Version="9.8.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.13" />
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
using System.Globalization;
|
||||
using Heimdall.Contracts;
|
||||
using MassTransit;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Heimdall.Web;
|
||||
|
||||
/// <summary>
|
||||
/// Configures MassTransit with RabbitMQ for the Central (Web) service.
|
||||
/// The Central publishes <see cref="AnalysisJobRequested"/> messages to dispatch
|
||||
/// work to remote agents, and consumes <see cref="AnalysisJobCompleted"/> and
|
||||
/// <see cref="AnalysisJobFailed"/> messages to track job lifecycle.
|
||||
/// </summary>
|
||||
public static class MassTransitConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration section name for RabbitMQ settings (RabbitMQ:Host, RabbitMQ:Port, etc.).
|
||||
/// </summary>
|
||||
private const string SectionName = "RabbitMQ";
|
||||
|
||||
/// <summary>
|
||||
/// Adds MassTransit with RabbitMQ transport for the Central (publisher).
|
||||
/// Exposes <see cref="IPublishEndpoint"/> via DI for dispatching analysis jobs.
|
||||
/// </summary>
|
||||
public static IServiceCollection AddHeimdallMassTransit(
|
||||
this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{
|
||||
var host = configuration[$"{SectionName}:Host"]
|
||||
?? Environment.GetEnvironmentVariable("RABBITMQ__HOST")
|
||||
?? "localhost";
|
||||
var port = configuration.GetValue<int>($"{SectionName}:Port",
|
||||
int.Parse(
|
||||
Environment.GetEnvironmentVariable("RABBITMQ__PORT") ?? "5672",
|
||||
CultureInfo.InvariantCulture));
|
||||
var user = configuration[$"{SectionName}:User"]
|
||||
?? Environment.GetEnvironmentVariable("RABBITMQ__USER")
|
||||
?? "heimdall";
|
||||
var password = configuration[$"{SectionName}:Password"]
|
||||
?? Environment.GetEnvironmentVariable("RABBITMQ__PASSWORD")
|
||||
?? "heimdall123";
|
||||
|
||||
services.AddMassTransit(x =>
|
||||
{
|
||||
x.UsingRabbitMq((context, cfg) =>
|
||||
{
|
||||
cfg.Host(host, (ushort)port, "/", h =>
|
||||
{
|
||||
h.Username(user);
|
||||
h.Password(password);
|
||||
});
|
||||
|
||||
cfg.ConfigureEndpoints(context);
|
||||
});
|
||||
});
|
||||
|
||||
Console.WriteLine($"[DIAG] MassTransit RabbitMQ: host={host}:{port}, user={user}");
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,6 @@ using Heimdall.Api;
|
||||
using Heimdall.Web.Services;
|
||||
using Heimdall.Web;
|
||||
using Hangfire;
|
||||
using MassTransit;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
@@ -436,7 +435,6 @@ public partial class Program
|
||||
ConfigureAuthScheme(builder);
|
||||
ConfigureBackgroundJobs(builder);
|
||||
ConfigureHttpClients(builder);
|
||||
ConfigureMassTransit(builder);
|
||||
|
||||
builder.Services.AddScoped<AuthState>();
|
||||
}
|
||||
@@ -548,15 +546,6 @@ public partial class Program
|
||||
builder.Services.AddBackgroundJobs(builder.Configuration);
|
||||
}
|
||||
|
||||
private static void ConfigureMassTransit(WebApplicationBuilder builder)
|
||||
{
|
||||
var isTesting = builder.Environment.IsEnvironment(TestingEnvironment);
|
||||
if (!isTesting)
|
||||
{
|
||||
builder.Services.AddHeimdallMassTransit(builder.Configuration);
|
||||
}
|
||||
}
|
||||
|
||||
private static void ConfigureHttpClients(WebApplicationBuilder builder)
|
||||
{
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
|
||||
@@ -33,30 +33,11 @@
|
||||
"Npgsql": "6.0.11"
|
||||
}
|
||||
},
|
||||
"MassTransit": {
|
||||
"type": "Direct",
|
||||
"requested": "[8.3.6, )",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "iQQ02dUJuWlpNai3eDN7WmnstvmB2LAD8YN1i8OFT5BaNpGYYg3v0US3S6f1Zz7us+NnGHm6csg25Ak3z0H7Xg==",
|
||||
"dependencies": {
|
||||
"MassTransit.Abstractions": "8.3.6"
|
||||
}
|
||||
},
|
||||
"MassTransit.RabbitMQ": {
|
||||
"type": "Direct",
|
||||
"requested": "[8.3.6, )",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "gR67/f8reudNVUf0yDdUBuDLBFjDdqCSF8K3XaIlpHSRmmCUTBVPVrt0h65/Zty00okBHzcbUX32bLZeQL51sw==",
|
||||
"dependencies": {
|
||||
"MassTransit": "8.3.6",
|
||||
"RabbitMQ.Client": "7.0.0"
|
||||
}
|
||||
},
|
||||
"Microsoft.AspNetCore.App.Internal.Assets": {
|
||||
"type": "Direct",
|
||||
"requested": "[10.0.13, )",
|
||||
"resolved": "10.0.13",
|
||||
"contentHash": "Y2cXnMnqht5fvja2H8kkr5WA2fYItIPwXiBVo83+/9oySuKZCrz4T+yyZRFtLpxxDScvtYDt7e+J0eNElJ+AiA=="
|
||||
"requested": "[10.0.12, )",
|
||||
"resolved": "10.0.12",
|
||||
"contentHash": "+sIBo9AMBZH46qHWHQdfzcGMt+RuBaPYrUMOAM9VjA7MQ9QtIez3lq1C3E05+Yroa94KKt3DSWaxmCI4H28a9Q=="
|
||||
},
|
||||
"Microsoft.AspNetCore.OpenApi": {
|
||||
"type": "Direct",
|
||||
@@ -241,11 +222,6 @@
|
||||
"resolved": "10.0.1",
|
||||
"contentHash": "4aDSyqSOhIXhh4FMQ1XkxrMcTqea3iCw3QXutzPFatUVg/Lvl7XUrSN0qn6AAYvitvTL3U0gYA/CxfSePiwaPg=="
|
||||
},
|
||||
"MassTransit.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "F3R3EFPvUvpsiebnijmpvZ4IhSEcqkEJdrhlFuTOjzIUnMRYBgki/oDfFWj57Ki4b9yq0nilt4Q5bk11pC4ygg=="
|
||||
},
|
||||
"MediatR": {
|
||||
"type": "Transitive",
|
||||
"resolved": "12.5.0",
|
||||
@@ -423,11 +399,6 @@
|
||||
"OpenTelemetry.Api": "1.17.0"
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client": {
|
||||
"type": "Transitive",
|
||||
"resolved": "7.0.0",
|
||||
"contentHash": "8YJz22mOSMtkbIVuVSz2HbJwbpKwRoXQ1uqbczDUt1w1Ds8dxFs6dkV/oZ8AlTmkErZjtQelHv+oBu52ud00WA=="
|
||||
},
|
||||
"Sentry": {
|
||||
"type": "Transitive",
|
||||
"resolved": "6.8.0",
|
||||
|
||||
@@ -128,33 +128,6 @@
|
||||
"resolved": "14.16.0",
|
||||
"contentHash": "ddBX/Zb0sCsX4agqHdHeqUx+grfw8I7GFU+lgut3mtNl7roxbxemSQFGLIJXtzwPuAHxbaMtkXA+ijVl02EUhQ=="
|
||||
},
|
||||
"MassTransit": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "iQQ02dUJuWlpNai3eDN7WmnstvmB2LAD8YN1i8OFT5BaNpGYYg3v0US3S6f1Zz7us+NnGHm6csg25Ak3z0H7Xg==",
|
||||
"dependencies": {
|
||||
"MassTransit.Abstractions": "8.3.6",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks": "9.0.0",
|
||||
"Microsoft.Extensions.Hosting.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Options": "9.0.0"
|
||||
}
|
||||
},
|
||||
"MassTransit.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "F3R3EFPvUvpsiebnijmpvZ4IhSEcqkEJdrhlFuTOjzIUnMRYBgki/oDfFWj57Ki4b9yq0nilt4Q5bk11pC4ygg=="
|
||||
},
|
||||
"MassTransit.RabbitMQ": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "gR67/f8reudNVUf0yDdUBuDLBFjDdqCSF8K3XaIlpHSRmmCUTBVPVrt0h65/Zty00okBHzcbUX32bLZeQL51sw==",
|
||||
"dependencies": {
|
||||
"MassTransit": "8.3.6",
|
||||
"RabbitMQ.Client": "7.0.0"
|
||||
}
|
||||
},
|
||||
"MediatR": {
|
||||
"type": "Transitive",
|
||||
"resolved": "12.5.0",
|
||||
@@ -401,22 +374,6 @@
|
||||
"Microsoft.Extensions.Options": "10.0.13"
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks": {
|
||||
"type": "Transitive",
|
||||
"resolved": "9.0.0",
|
||||
"contentHash": "cxsK9/Dx7Ka9sfiA1nY8XlSzIaWff5FNRw0+ls8yR+aGzmnah5JGKsTHgQrehjMwGAVud/pjiUZ9MWizfUSkTQ==",
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Hosting.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Options": "9.0.0"
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "9.0.0",
|
||||
"contentHash": "H1IbHm/MnUgEV0N07WrkPBIIoX7isP6IPaqUdZ3CwbMcUVDGIu+okamW28kyDRfIiZqbTbyHuNIkr4ZSHPyvDw=="
|
||||
},
|
||||
"Microsoft.Extensions.Features": {
|
||||
"type": "Transitive",
|
||||
"resolved": "10.0.13",
|
||||
@@ -642,14 +599,6 @@
|
||||
"OpenTelemetry": "1.17.0"
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client": {
|
||||
"type": "Transitive",
|
||||
"resolved": "7.0.0",
|
||||
"contentHash": "8YJz22mOSMtkbIVuVSz2HbJwbpKwRoXQ1uqbczDUt1w1Ds8dxFs6dkV/oZ8AlTmkErZjtQelHv+oBu52ud00WA==",
|
||||
"dependencies": {
|
||||
"System.Threading.RateLimiting": "8.0.0"
|
||||
}
|
||||
},
|
||||
"Sentry": {
|
||||
"type": "Transitive",
|
||||
"resolved": "6.8.0",
|
||||
@@ -745,11 +694,6 @@
|
||||
"System.Security.Cryptography.Pkcs": "10.0.13"
|
||||
}
|
||||
},
|
||||
"System.Threading.RateLimiting": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "7mu9v0QDv66ar3DpGSZHg9NuNcxDaaAcnMULuZlaTpP9+hwXhrxNGsF5GmLkSHxFdb5bBc1TzeujsRgTrPWi+Q=="
|
||||
},
|
||||
"xunit.abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.0.3",
|
||||
@@ -797,8 +741,6 @@
|
||||
"Heimdall.Contracts": "[1.0.0, )",
|
||||
"Heimdall.Mdns": "[1.0.0, )",
|
||||
"Magick.NET-Q16-AnyCPU": "[14.16.0, )",
|
||||
"MassTransit": "[8.3.6, )",
|
||||
"MassTransit.RabbitMQ": "[8.3.6, )",
|
||||
"Microsoft.AspNetCore.SignalR.Client": "[10.0.13, )",
|
||||
"Microsoft.ML.OnnxRuntime": "[1.22.0, )",
|
||||
"OpenTelemetry": "[1.17.0, )",
|
||||
|
||||
@@ -203,33 +203,6 @@
|
||||
"resolved": "10.0.1",
|
||||
"contentHash": "4aDSyqSOhIXhh4FMQ1XkxrMcTqea3iCw3QXutzPFatUVg/Lvl7XUrSN0qn6AAYvitvTL3U0gYA/CxfSePiwaPg=="
|
||||
},
|
||||
"MassTransit": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "iQQ02dUJuWlpNai3eDN7WmnstvmB2LAD8YN1i8OFT5BaNpGYYg3v0US3S6f1Zz7us+NnGHm6csg25Ak3z0H7Xg==",
|
||||
"dependencies": {
|
||||
"MassTransit.Abstractions": "8.3.6",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks": "9.0.0",
|
||||
"Microsoft.Extensions.Hosting.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Options": "9.0.0"
|
||||
}
|
||||
},
|
||||
"MassTransit.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "F3R3EFPvUvpsiebnijmpvZ4IhSEcqkEJdrhlFuTOjzIUnMRYBgki/oDfFWj57Ki4b9yq0nilt4Q5bk11pC4ygg=="
|
||||
},
|
||||
"MassTransit.RabbitMQ": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "gR67/f8reudNVUf0yDdUBuDLBFjDdqCSF8K3XaIlpHSRmmCUTBVPVrt0h65/Zty00okBHzcbUX32bLZeQL51sw==",
|
||||
"dependencies": {
|
||||
"MassTransit": "8.3.6",
|
||||
"RabbitMQ.Client": "7.0.0"
|
||||
}
|
||||
},
|
||||
"MediatR": {
|
||||
"type": "Transitive",
|
||||
"resolved": "12.5.0",
|
||||
@@ -895,14 +868,6 @@
|
||||
"OpenTelemetry.Api.ProviderBuilderExtensions": "[1.17.0, 2.0.0)"
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client": {
|
||||
"type": "Transitive",
|
||||
"resolved": "7.0.0",
|
||||
"contentHash": "8YJz22mOSMtkbIVuVSz2HbJwbpKwRoXQ1uqbczDUt1w1Ds8dxFs6dkV/oZ8AlTmkErZjtQelHv+oBu52ud00WA==",
|
||||
"dependencies": {
|
||||
"System.Threading.RateLimiting": "8.0.0"
|
||||
}
|
||||
},
|
||||
"Scalar.AspNetCore": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.0.2",
|
||||
@@ -1007,11 +972,6 @@
|
||||
"System.Security.Cryptography.Pkcs": "10.0.13"
|
||||
}
|
||||
},
|
||||
"System.Threading.RateLimiting": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "7mu9v0QDv66ar3DpGSZHg9NuNcxDaaAcnMULuZlaTpP9+hwXhrxNGsF5GmLkSHxFdb5bBc1TzeujsRgTrPWi+Q=="
|
||||
},
|
||||
"xunit.abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.0.3",
|
||||
@@ -1114,8 +1074,6 @@
|
||||
"Heimdall.Application": "[1.0.0, )",
|
||||
"Heimdall.Contracts": "[1.0.0, )",
|
||||
"Heimdall.Infrastructure": "[1.0.0, )",
|
||||
"MassTransit": "[8.3.6, )",
|
||||
"MassTransit.RabbitMQ": "[8.3.6, )",
|
||||
"Microsoft.AspNetCore.OpenApi": "[10.0.13, )",
|
||||
"Microsoft.AspNetCore.SignalR.Client": "[10.0.13, )",
|
||||
"MudBlazor": "[9.8.0, )",
|
||||
|
||||
@@ -287,33 +287,6 @@
|
||||
"resolved": "10.0.1",
|
||||
"contentHash": "4aDSyqSOhIXhh4FMQ1XkxrMcTqea3iCw3QXutzPFatUVg/Lvl7XUrSN0qn6AAYvitvTL3U0gYA/CxfSePiwaPg=="
|
||||
},
|
||||
"MassTransit": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "iQQ02dUJuWlpNai3eDN7WmnstvmB2LAD8YN1i8OFT5BaNpGYYg3v0US3S6f1Zz7us+NnGHm6csg25Ak3z0H7Xg==",
|
||||
"dependencies": {
|
||||
"MassTransit.Abstractions": "8.3.6",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks": "9.0.0",
|
||||
"Microsoft.Extensions.Hosting.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Options": "9.0.0"
|
||||
}
|
||||
},
|
||||
"MassTransit.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "F3R3EFPvUvpsiebnijmpvZ4IhSEcqkEJdrhlFuTOjzIUnMRYBgki/oDfFWj57Ki4b9yq0nilt4Q5bk11pC4ygg=="
|
||||
},
|
||||
"MassTransit.RabbitMQ": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "gR67/f8reudNVUf0yDdUBuDLBFjDdqCSF8K3XaIlpHSRmmCUTBVPVrt0h65/Zty00okBHzcbUX32bLZeQL51sw==",
|
||||
"dependencies": {
|
||||
"MassTransit": "8.3.6",
|
||||
"RabbitMQ.Client": "7.0.0"
|
||||
}
|
||||
},
|
||||
"MediatR": {
|
||||
"type": "Transitive",
|
||||
"resolved": "12.5.0",
|
||||
@@ -1135,14 +1108,6 @@
|
||||
"OpenTelemetry.Api.ProviderBuilderExtensions": "[1.17.0, 2.0.0)"
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client": {
|
||||
"type": "Transitive",
|
||||
"resolved": "7.0.0",
|
||||
"contentHash": "8YJz22mOSMtkbIVuVSz2HbJwbpKwRoXQ1uqbczDUt1w1Ds8dxFs6dkV/oZ8AlTmkErZjtQelHv+oBu52ud00WA==",
|
||||
"dependencies": {
|
||||
"System.Threading.RateLimiting": "8.0.0"
|
||||
}
|
||||
},
|
||||
"Scalar.AspNetCore": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.0.2",
|
||||
@@ -1266,11 +1231,6 @@
|
||||
"System.Security.Cryptography.Pkcs": "10.0.13"
|
||||
}
|
||||
},
|
||||
"System.Threading.RateLimiting": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "7mu9v0QDv66ar3DpGSZHg9NuNcxDaaAcnMULuZlaTpP9+hwXhrxNGsF5GmLkSHxFdb5bBc1TzeujsRgTrPWi+Q=="
|
||||
},
|
||||
"Testcontainers": {
|
||||
"type": "Transitive",
|
||||
"resolved": "4.13.0",
|
||||
@@ -1418,8 +1378,6 @@
|
||||
"Heimdall.Application": "[1.0.0, )",
|
||||
"Heimdall.Contracts": "[1.0.0, )",
|
||||
"Heimdall.Infrastructure": "[1.0.0, )",
|
||||
"MassTransit": "[8.3.6, )",
|
||||
"MassTransit.RabbitMQ": "[8.3.6, )",
|
||||
"Microsoft.AspNetCore.OpenApi": "[10.0.13, )",
|
||||
"Microsoft.AspNetCore.SignalR.Client": "[10.0.13, )",
|
||||
"MudBlazor": "[9.8.0, )",
|
||||
|
||||
@@ -280,33 +280,6 @@
|
||||
"resolved": "10.0.1",
|
||||
"contentHash": "4aDSyqSOhIXhh4FMQ1XkxrMcTqea3iCw3QXutzPFatUVg/Lvl7XUrSN0qn6AAYvitvTL3U0gYA/CxfSePiwaPg=="
|
||||
},
|
||||
"MassTransit": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "iQQ02dUJuWlpNai3eDN7WmnstvmB2LAD8YN1i8OFT5BaNpGYYg3v0US3S6f1Zz7us+NnGHm6csg25Ak3z0H7Xg==",
|
||||
"dependencies": {
|
||||
"MassTransit.Abstractions": "8.3.6",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks": "9.0.0",
|
||||
"Microsoft.Extensions.Hosting.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Options": "9.0.0"
|
||||
}
|
||||
},
|
||||
"MassTransit.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "F3R3EFPvUvpsiebnijmpvZ4IhSEcqkEJdrhlFuTOjzIUnMRYBgki/oDfFWj57Ki4b9yq0nilt4Q5bk11pC4ygg=="
|
||||
},
|
||||
"MassTransit.RabbitMQ": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "gR67/f8reudNVUf0yDdUBuDLBFjDdqCSF8K3XaIlpHSRmmCUTBVPVrt0h65/Zty00okBHzcbUX32bLZeQL51sw==",
|
||||
"dependencies": {
|
||||
"MassTransit": "8.3.6",
|
||||
"RabbitMQ.Client": "7.0.0"
|
||||
}
|
||||
},
|
||||
"MediatR": {
|
||||
"type": "Transitive",
|
||||
"resolved": "12.5.0",
|
||||
@@ -1115,14 +1088,6 @@
|
||||
"OpenTelemetry.Api.ProviderBuilderExtensions": "[1.17.0, 2.0.0)"
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client": {
|
||||
"type": "Transitive",
|
||||
"resolved": "7.0.0",
|
||||
"contentHash": "8YJz22mOSMtkbIVuVSz2HbJwbpKwRoXQ1uqbczDUt1w1Ds8dxFs6dkV/oZ8AlTmkErZjtQelHv+oBu52ud00WA==",
|
||||
"dependencies": {
|
||||
"System.Threading.RateLimiting": "8.0.0"
|
||||
}
|
||||
},
|
||||
"Scalar.AspNetCore": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.0.2",
|
||||
@@ -1241,11 +1206,6 @@
|
||||
"System.Security.Cryptography.Pkcs": "10.0.13"
|
||||
}
|
||||
},
|
||||
"System.Threading.RateLimiting": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "7mu9v0QDv66ar3DpGSZHg9NuNcxDaaAcnMULuZlaTpP9+hwXhrxNGsF5GmLkSHxFdb5bBc1TzeujsRgTrPWi+Q=="
|
||||
},
|
||||
"Testcontainers": {
|
||||
"type": "Transitive",
|
||||
"resolved": "4.13.0",
|
||||
@@ -1378,8 +1338,6 @@
|
||||
"Heimdall.Application": "[1.0.0, )",
|
||||
"Heimdall.Contracts": "[1.0.0, )",
|
||||
"Heimdall.Infrastructure": "[1.0.0, )",
|
||||
"MassTransit": "[8.3.6, )",
|
||||
"MassTransit.RabbitMQ": "[8.3.6, )",
|
||||
"Microsoft.AspNetCore.OpenApi": "[10.0.13, )",
|
||||
"Microsoft.AspNetCore.SignalR.Client": "[10.0.13, )",
|
||||
"MudBlazor": "[9.8.0, )",
|
||||
|
||||
@@ -272,33 +272,6 @@
|
||||
"resolved": "10.0.1",
|
||||
"contentHash": "4aDSyqSOhIXhh4FMQ1XkxrMcTqea3iCw3QXutzPFatUVg/Lvl7XUrSN0qn6AAYvitvTL3U0gYA/CxfSePiwaPg=="
|
||||
},
|
||||
"MassTransit": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "iQQ02dUJuWlpNai3eDN7WmnstvmB2LAD8YN1i8OFT5BaNpGYYg3v0US3S6f1Zz7us+NnGHm6csg25Ak3z0H7Xg==",
|
||||
"dependencies": {
|
||||
"MassTransit.Abstractions": "8.3.6",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks": "9.0.0",
|
||||
"Microsoft.Extensions.Hosting.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "9.0.0",
|
||||
"Microsoft.Extensions.Options": "9.0.0"
|
||||
}
|
||||
},
|
||||
"MassTransit.Abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "F3R3EFPvUvpsiebnijmpvZ4IhSEcqkEJdrhlFuTOjzIUnMRYBgki/oDfFWj57Ki4b9yq0nilt4Q5bk11pC4ygg=="
|
||||
},
|
||||
"MassTransit.RabbitMQ": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.3.6",
|
||||
"contentHash": "gR67/f8reudNVUf0yDdUBuDLBFjDdqCSF8K3XaIlpHSRmmCUTBVPVrt0h65/Zty00okBHzcbUX32bLZeQL51sw==",
|
||||
"dependencies": {
|
||||
"MassTransit": "8.3.6",
|
||||
"RabbitMQ.Client": "7.0.0"
|
||||
}
|
||||
},
|
||||
"MediatR": {
|
||||
"type": "Transitive",
|
||||
"resolved": "12.5.0",
|
||||
@@ -1049,14 +1022,6 @@
|
||||
"OpenTelemetry.Api.ProviderBuilderExtensions": "[1.17.0, 2.0.0)"
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client": {
|
||||
"type": "Transitive",
|
||||
"resolved": "7.0.0",
|
||||
"contentHash": "8YJz22mOSMtkbIVuVSz2HbJwbpKwRoXQ1uqbczDUt1w1Ds8dxFs6dkV/oZ8AlTmkErZjtQelHv+oBu52ud00WA==",
|
||||
"dependencies": {
|
||||
"System.Threading.RateLimiting": "8.0.0"
|
||||
}
|
||||
},
|
||||
"Scalar.AspNetCore": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.0.2",
|
||||
@@ -1161,11 +1126,6 @@
|
||||
"System.Security.Cryptography.Pkcs": "10.0.13"
|
||||
}
|
||||
},
|
||||
"System.Threading.RateLimiting": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "7mu9v0QDv66ar3DpGSZHg9NuNcxDaaAcnMULuZlaTpP9+hwXhrxNGsF5GmLkSHxFdb5bBc1TzeujsRgTrPWi+Q=="
|
||||
},
|
||||
"xunit.abstractions": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.0.3",
|
||||
@@ -1268,8 +1228,6 @@
|
||||
"Heimdall.Application": "[1.0.0, )",
|
||||
"Heimdall.Contracts": "[1.0.0, )",
|
||||
"Heimdall.Infrastructure": "[1.0.0, )",
|
||||
"MassTransit": "[8.3.6, )",
|
||||
"MassTransit.RabbitMQ": "[8.3.6, )",
|
||||
"Microsoft.AspNetCore.OpenApi": "[10.0.13, )",
|
||||
"Microsoft.AspNetCore.SignalR.Client": "[10.0.13, )",
|
||||
"MudBlazor": "[9.8.0, )",
|
||||
|
||||
Reference in new issue
Block a user