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

fix(test): fix CLI shutdown #1299

Merged
merged 1 commit into from
Jul 18, 2024
Merged

fix(test): fix CLI shutdown #1299

merged 1 commit into from
Jul 18, 2024

Conversation

jhult
Copy link
Member

@jhult jhult commented Jul 16, 2024

Fixes #767

The wrong PID was being captured. The PID captured was for a bash process and thus the kill signal wasn't reaching the Indexer itself.

@jhult jhult self-assigned this Jul 16, 2024
@jhult jhult marked this pull request as draft July 16, 2024 03:07
@robinbb
Copy link
Member

robinbb commented Jul 16, 2024

@jhult It is true that the PID captured is not the PID of the indexer, but it is a sufficiently good PID to keep because sending it a signal will send a signal to its child (the mina-indexer) as desired. The solution you have here will not work as-is because it backgrounds the 'idxr' command, but that command must not always be backgrounded as it is often used for foreground things.

@jhult jhult marked this pull request as ready for review July 17, 2024 18:23
@jhult jhult changed the title fix(test): fix PID capture from test indexer fix(test): fix CLI shutdown Jul 17, 2024
@jhult jhult assigned robinbb and unassigned jhult Jul 17, 2024
@robinbb robinbb merged commit 4244eb5 into Granola-Team:main Jul 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indexer does not always shutdown cleanly
2 participants