mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-21 08:40:10 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user