Events Retry Logic with limited attempts#132
Conversation
|
Looking good so far @geckod22 |
Hi @wpscholar about the timestamp validation, it seems the events are taken from the database where the created_at is not changed (we only increment the attempts column), so on retry they still have the same timestamp; or do you mean a different thing? |
@geckod22 Yes, we want to always pass the |
|
Hi @wpscholar there's a point here which is not pretty clear, so I wonder what I don't understand. |
@AleTorrisi Previously, we didn't send the timestamp from the database. This has since been corrected, but I mentioned that we should have a test for it, as I don't think we ever created a test for this. I want to make sure we never have a regression. Last time we had attempted retries, having a unique timestamp every time we sent an event presented significant issues with de-duping and getting correct data. Before we try this again, I want to ensure we have a test that validates the timestamp isn't changing with each retry. |
|
@wpscholar That’s ok, we didn’t know that behavior was different before and that created_at was not set on event.
This way will not be possible have a discrepancy between the event and database data. Do you agree with this solution? |
|
The issue with creation date has been fixed in this |
|
@wpscholar last commit should suits well your request |
arunshenoy99
left a comment
There was a problem hiding this comment.
Looks good to me. Once this is merged, maybe we can keep a branch open without these changes in case we need to revert again.
|
@wpscholar default value set at 1 |
arunshenoy99
left a comment
There was a problem hiding this comment.
@wpscholar @circlecube If this looks good to you, can we tag a release and include it in the May 14th plugin release?
|
@arunshenoy99, @BrianHenryIE wanted to add some unit tests here before merging. Aiming at getting them added today and we can still merge and tag a module release. |
Proposed changes
This is an attempt to manage the retry logic with retry limit attempts in order to help the migration module to be able to send the migration complete event also if in the first attempt something gone wrong.
This refers to https://jira.newfold.com/browse/PRESS7-375
Type of Change
Production
Development
Video
Checklist
Further comments