-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sweeping emitted refunds events for hstoric charges
- Emitted events sweeper for refunds currently relies on related charge being in connector database. But we should be able to emit refund events for expunged charges. This fixes backfilling refund events for historic charges - Also took opportunity to split full backfill (charges + refunds) for a given event. For a charge event, only payment events are emitted and for refund event, only refund events are emitted. This can be improved further to emit specific event only. - In case of any exception when processing event, event is marked to not retry instead of throwing exception. The emitted events sweeper continues emitting pending events.
- Loading branch information
Showing
3 changed files
with
45 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters