Skip to content

Commit

Permalink
[core] use Taskid for kafka task events instead of Environmentid
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Tichák authored and knopers8 committed Mar 4, 2025
1 parent 3a5ee34 commit 0cffa06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/event/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ func (w *KafkaWriter) WriteEventWithTimestamp(e interface{}, timestamp time.Time
Payload: &pb.Event_FrameworkEvent{FrameworkEvent: e},
}
case *pb.Ev_TaskEvent:
key = extractAndConvertEnvID(e)
key = []byte(e.Taskid)
if len(key) == 0 {
key = nil
}
wrappedEvent = &pb.Event{
Timestamp: timestamp.UnixMilli(),
TimestampNano: timestamp.UnixNano(),
Expand Down

0 comments on commit 0cffa06

Please sign in to comment.