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 issue where service is not shutdown if interrupted while interactive prompt is initialising. Closes #1004 #1280

Merged
merged 7 commits into from
Jan 5, 2022

Conversation

binaek
Copy link
Contributor

@binaek binaek commented Jan 3, 2022

No description provided.

@binaek binaek added the bug Something isn't working label Jan 3, 2022
@binaek binaek self-assigned this Jan 3, 2022
@binaek binaek force-pushed the interactive_init_ctrld_1004 branch from 2444a87 to 6d833b2 Compare January 5, 2022 07:20
Copy link
Contributor

@kaidaguerre kaidaguerre left a comment

Choose a reason for hiding this comment

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

looks good - minor tweaks

client.Close()
}

// init data cleanup
Copy link
Contributor

Choose a reason for hiding this comment

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

need a better comment here - this is important - this cleanup shuts the service

// cleanup the init data to ensure any services we started are stopped

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@@ -7,6 +7,7 @@ import (
"time"

"github.com/turbot/steampipe/db/db_common"
"github.com/turbot/steampipe/workspace"

Copy link
Contributor

Choose a reason for hiding this comment

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

remove gap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@kaidaguerre kaidaguerre merged commit 990275c into main Jan 5, 2022
@kaidaguerre kaidaguerre deleted the interactive_init_ctrld_1004 branch January 5, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In interactive mode, if ctrl+d is hit before initialisation is complete, the database is not shut down
2 participants