Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Inconsistent event status #3

Closed
ShaunEgan opened this issue Sep 17, 2018 · 2 comments
Closed

Inconsistent event status #3

ShaunEgan opened this issue Sep 17, 2018 · 2 comments

Comments

@ShaunEgan
Copy link
Contributor

ShaunEgan commented Sep 17, 2018

When an event is received, the status is sent as TRIGGERED. However, when using the find endpoint and retrieving this event, the status is PROCESSED. Is this the expected status only after successful delivery of an event?

@sandeepmalik
Copy link
Contributor

That is correct, when BigBen calls the tenant, there's no knowing in advance that the call will succeed or not (the http API may be down, or kafka producer may time out, etc). Hence it calls with status TRIGGERED. Only if the call succeeds (after any number of configured retries), it marks the event as PROCESSED.

The status TRIGGERED (due to failure of the tenant to respond) is not preserved in db because it can be sort of inferred from the following condition: status == UN_PROCESSED && error != null

Let me know what you think.

@ShaunEgan
Copy link
Contributor Author

That makes perfect sense, thank you!

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

No branches or pull requests

2 participants