Skip to content

Commit

Permalink
updating lifecycle expired field
Browse files Browse the repository at this point in the history
  • Loading branch information
rayjanoka committed Sep 12, 2024
1 parent 61c0e08 commit 572ae16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archie/removeObject.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func (a *Archiver) removeObject(ctx context.Context, mLog zerolog.Logger, eventObjKey string, msg *nats.Msg, record event.Record) (error, string, AckType) {
metadata, _ := msg.Metadata()

if a.SkipLifecycleExpired && record.Source.Host == "Internal: [ILM-EXPIRY]" {
if a.SkipLifecycleExpired && (record.Source.Host == "Internal: [ILM-EXPIRY]" || record.Source.UserAgent == "Internal: [ILM-EXPIRY]") {
mLog.Info().
Uint64("numDelivered", metadata.NumDelivered).
Str("queueDuration", time.Now().Sub(metadata.Timestamp).String()).
Expand Down

0 comments on commit 572ae16

Please # to comment.