mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-06 08:49:53 -06:00
fix: proper casing on task-completed payload
This commit is contained in:
@@ -468,6 +468,7 @@ func (d *DispatcherImpl) subscribeToWorkflowRunsV1(server contracts.Dispatcher_S
|
||||
}
|
||||
|
||||
acks.addWorkflowRun(req.WorkflowRunId)
|
||||
go iter([]string{req.WorkflowRunId}) // nolint: errcheck
|
||||
}
|
||||
}()
|
||||
|
||||
@@ -1340,7 +1341,7 @@ func (d *DispatcherImpl) isMatchingWorkflowRunV1(msg *msgqueue.Message, acks *wo
|
||||
payloads := msgqueue.JSONConvert[tasktypes.CompletedTaskPayload](msg.Payloads)
|
||||
|
||||
for _, payload := range payloads {
|
||||
if payload.IsDAG && acks.hasWorkflowRun(payload.WorkflowRunId) {
|
||||
if !payload.IsDAG && acks.hasWorkflowRun(payload.ExternalId) {
|
||||
output := string(payload.Output)
|
||||
|
||||
res = append(res, &contracts.WorkflowRunEvent{
|
||||
|
||||
Reference in New Issue
Block a user