Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

fix: trigger kill switch when end block is met #1353

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

deekerno
Copy link
Contributor

@deekerno deekerno commented Sep 13, 2023

Closes #1352.

Description

Ensure that indexers are shutdown when the end block is met.

Testing steps

Change the end_block field of the fuel-explorer manifest to an arbitrary block height. Run the indexer on beta-4 with the explorer and ensure that you see a message similar to the following when the end block is met:

2023-09-13T18:41:34.577587Z  INFO fuel_indexer::executor: 157: Indexer(fuellabs.explorer) has met its end block; beginning indexer shutdown process.
2023-09-13T18:41:34.577608Z  INFO fuel_indexer::executor: 137: Kill switch flipped, stopping Indexer(fuellabs.explorer). <('.')>

@deekerno deekerno added the bug Something isn't working label Sep 13, 2023
@deekerno deekerno self-assigned this Sep 13, 2023
@deekerno deekerno marked this pull request as ready for review September 13, 2023 20:11
Copy link
Contributor

@ra0x3 ra0x3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@deekerno deekerno merged commit 322a2e7 into develop Sep 13, 2023
18 checks passed
@deekerno deekerno deleted the deekerno/1352-kill-indexer-at-end-block branch September 13, 2023 20:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indexers should trigger kill switch when end block is met
3 participants