[Feature] Test Shutdown #21

Closed
opened 2022-04-27 13:58:48 +00:00 by abdulrabbani00 · 0 comments
abdulrabbani00 commented 2022-04-27 13:58:48 +00:00 (Migrated from github.com)

Table of contents generated with markdown-toc

Overview

Request

When the application shuts down we should ensure that we are exiting gracefully. We need to test the following:

  • Stop listening to new SSE events.
  • Finish processing events in the current channel.
  • Stop after the current events have been processed.

Potential Solution

  • Make sure all channels are empty that need to be empty.
  • Make sure the shutdown function completes after five seconds no matter what.

Alternative Solutions

None for now.

Additional Context

I think we will have to use the unit test feature here to control the flow of blocks coming in.

- [Overview](#overview) - [Request](#request) - [Potential Solution](#potential-solution) - [Alternative Solutions](#alternative-solutions) - [Additional Context](#additional-context) <small><i><a href='http://ecotrust-canada.github.io/markdown-toc/'>Table of contents generated with markdown-toc</a></i></small> # Overview - **Requester**: @abdulrabbani00 - **Epic Link**: https://github.com/vulcanize/ipld-ethcl-indexer/issues/19 ## Request <!--- Explain what you want and why. If this feature is related to a problem please highlight it here.** ---> When the application shuts down we should ensure that we are exiting gracefully. We need to test the following: * Stop listening to new SSE events. * Finish processing events in the current channel. * Stop after the current events have been processed. # Potential Solution <!---Provide any details for a potential solution. ---> - Make sure all channels are empty that need to be empty. - Make sure the shutdown function completes after five seconds no matter what. ## Alternative Solutions <!---Provide any alternative solutions. ---> None for now. # Additional Context <!---Provide Additional Context. ---> I think we will have to use the unit test feature here to control the flow of blocks coming in.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-beacon-indexer#21
No description provided.