Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mailgun event polling logic #526

Open
upanshu21 opened this issue Feb 24, 2021 · 0 comments
Open

mailgun event polling logic #526

upanshu21 opened this issue Feb 24, 2021 · 0 comments

Comments

@upanshu21
Copy link

I am working on the polling mechanism for mailgun and need some help in clearing out the stated retry logic in case of "untrustworthy events" provided by mailgun.
Going by the documentation: https://documentation.mailgun.com/en/latest/api-events.html#event-polling
It is stated that :

1.  Check the timestamp of the last event on the result page. If it is older than some threshold age (e.g. half an hour) then go to step (4), otherwise proceed with step (6);
2.  The result page is trustworthy, use events from the page as you please;
3. Make a request using the next page URL retrieved with the result page, proceed with step (2);
4. Discard the result page for it is not trustworthy;
5. Pause for some time (at least 15 seconds);
6. Repeat the previous request, and proceed with step (2).

The confusion is about step 6.
Does Previous request mean that retry the current url or retrieve the previous page url and request that page again. Any help on this would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant