‎2018 Feb 01 5:03 AM - edited ‎2024 Feb 04 4:12 AM
Hello experts,
I need to implement an event handler for PublicationCompletedEvent i.e notify if publication has error. However, I also want to enable Publication Retry so I have datahub.max.publication.retry.count set to a non-zero-value.
Is it possible to handle the event in a way that triggers notification only if the publication is NOT a retry? What I'm trying to say is, is there a way to access the retry count for the specific canonical item, in order to trigger a handler method if the particular publication's retry count is 0? Idea is I don't want to keep sending error notifications for the same item (even if publication retries fail).
Thanks in advance!
Request clarification before answering.
You can use the actionId from the PublicationCompletedEvent to find the TargetSystemPublications associated with the PublicationAction. The TargetSystemPublications are associated to TargetSystems. You then can use the TargetSystem id and the CanonicalItem id to find the PublicationRetry to get the retryCount.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.