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

Refactor the terminate/restart commands #250

Merged
merged 7 commits into from
Nov 23, 2022
Merged

Conversation

ChrisKujawa
Copy link
Member

Extend the restart method to specify the gracePeriod allows to extract logic and reuse methods in restart and terminate commands.

Reduces several code duplications.

Extract method in order to reuse in restart and terminate broker command
Extract method to restart gateway and reuse in restart and terminate command
Extract method to restart workers, can be used in restart and terminate command
@ChrisKujawa ChrisKujawa marked this pull request as ready for review November 22, 2022 15:46
go-chaos/cmd/restart.go Show resolved Hide resolved
go-chaos/cmd/restart.go Show resolved Hide resolved
@ChrisKujawa ChrisKujawa merged commit d546538 into main Nov 23, 2022
@ChrisKujawa ChrisKujawa deleted the zell-refactor-terminate branch November 23, 2022 09:08
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.

2 participants