Skip to content

Commit

Permalink
refactor: Move synchronisation logic to LifecycleManger (#1005)
Browse files Browse the repository at this point in the history
This PR moves the synchronisation logic within
`ExecutorsHandler`/`BlockStreamsHandler` in to `LifecycleManager`. The
motive behind this is to provide greater awareness/control over the
individual sync tasks (managing unhealthy, reconfiguring, etc.) to
`LifecycleManger`.

I plan to build on top of this in my next PR, and have
`LifecycleManager` count how many times an unhealthy stream/executor was
restarted, and move the Indexer to `Suspended` if it goes above a
configured threshold. This refactor makes "counting" actually possible.

Wanted to land the refactor PR first to make review easier.
  • Loading branch information
morgsmccauley authored Aug 14, 2024
1 parent 5633b4a commit 4b46f54
Show file tree
Hide file tree
Showing 3 changed files with 632 additions and 323 deletions.
Loading

0 comments on commit 4b46f54

Please sign in to comment.