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

Refine Shutdown logic #11

Open
sergiupopescu199 opened this issue Dec 12, 2024 · 2 comments
Open

Refine Shutdown logic #11

sergiupopescu199 opened this issue Dec 12, 2024 · 2 comments
Assignees

Comments

@sergiupopescu199
Copy link
Contributor

Description

Based on tokio's documentation about graceful shutdown explore the available solutions and propose a simple logic of handling graceful shutdown of the tasks the Indexer has:

  • Indexer checkpoint sync
  • RestApi

An interesting solution could be to explore the task_tracker

@kodemartin
Copy link
Collaborator

There are some functional requirements that pertain to the shutdown implementation:

  1. The current checkpoint should be successfully processed. That is, once the shutdown signal is received all the data of interest that belong to the current checkpoint should be persisted in the db. Then the sync service should stop.
  2. No other checkpoint than the current should be processed.

This brings up another question to explore: How does iota-data-ingestion-core handle the shutdown signal sent from the sync process?

@shufps
Copy link

shufps commented Feb 3, 2025

related:
#33

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

No branches or pull requests

3 participants