Fix: Streaming Bugs (#1913)

* fix: bug with json parsing failing

* fix: hang up on cancel and fail

* fix: pub stream events even if tenant pubs are disabled

* fix: condition

* fix: eq
This commit is contained in:
Matt Kaye
2025-06-26 16:22:56 -04:00
committed by GitHub
parent b92c1588ba
commit e62f7edab3
3 changed files with 7 additions and 2 deletions

View File

@@ -231,7 +231,7 @@ func (t *MessageQueueImpl) pubMessage(ctx context.Context, q msgqueue.Queue, msg
}
// if this is a tenant msg, publish to the tenant exchange
if !t.disableTenantExchangePubs && msg.TenantID != "" {
if (!t.disableTenantExchangePubs || msg.ID == "task-stream-event") && msg.TenantID != "" {
// determine if the tenant exchange exists
if _, ok := t.tenantIdCache.Get(msg.TenantID); !ok {
// register the tenant exchange