cancel
Showing results for 
Search instead for 
Did you mean: 

Data Hub - How to handle event for final failure of publication retry

former_member633334
Participant
0 Kudos

Hello experts,

For datahub.max.publication.retry.count property in Data Hub, is there a way to extend the OOTB "...max retry reached..." method so I can send a notification (e.g. mail) for the final publication failure?

Meaning if datahub.max.publication.retry.count = 5, no notifications should be sent when the publication failure first occurred and while it is retried for 4 times. What I'd like is for the notification to be sent only during the FINAL (5th retry) failure.

I'm aware that I can refer to event-sample from Solution Book. But I can't think of how to implement the requirement above i.e. include logic to perform-something only during final+failed publication retry.

Thanks in advance!

*Data Hub v6.5

Accepted Solutions (1)

Accepted Solutions (1)

former_member1097760
Participant
0 Kudos

Hi , I think what you are looking for is provided OOTB by the monitoring events https://help.hybris.com/6.5.0/hcd/c4389d337f7b4fb7b389ff11bf0ec11f.html. Please see the description for NoMorePublicationAttemptsEvent. You will have to implement a listener for that event, but it is very straight forward. The event-sample extension you mentioned does something similar.

former_member633334
Participant
0 Kudos

Thanks .

Answers (0)