Skip to content

Commit 0cffa06

Browse files
Michal Tichákknopers8
authored andcommitted
[core] use Taskid for kafka task events instead of Environmentid
1 parent 3a5ee34 commit 0cffa06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/event/writer.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ func (w *KafkaWriter) WriteEventWithTimestamp(e interface{}, timestamp time.Time
124124
Payload: &pb.Event_FrameworkEvent{FrameworkEvent: e},
125125
}
126126
case *pb.Ev_TaskEvent:
127-
key = extractAndConvertEnvID(e)
127+
key = []byte(e.Taskid)
128+
if len(key) == 0 {
129+
key = nil
130+
}
128131
wrappedEvent = &pb.Event{
129132
Timestamp: timestamp.UnixMilli(),
130133
TimestampNano: timestamp.UnixNano(),

0 commit comments

Comments
 (0)