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/service manager #2401

Merged
merged 14 commits into from
Aug 23, 2023
Merged

Refactor/service manager #2401

merged 14 commits into from
Aug 23, 2023

Conversation

Blu-J
Copy link
Contributor

@Blu-J Blu-J commented Aug 18, 2023

About

The idea about this is that the service manager should be a state machine, so we shall make the code actually a state machine. The code ends up being simpler, the thing then acts like a actor, and the state can be observed.

Proof

Here we show that we can stop and start services.
image

image

And the restart works

and backup/ restore
image

Then deleted then restored 2/3
image

Proof that the config is working

ProofOfWorkingConfig.mp4

@Blu-J Blu-J marked this pull request as ready for review August 21, 2023 19:49
@Blu-J Blu-J requested a review from dr-bonez August 21, 2023 19:58
TransitionState::BackingUp(
tokio::spawn(
self.perform_backup(backup_guard)
.then(finnish_up_backup_task(self.transition.clone(), send)),
Copy link
Member

Choose a reason for hiding this comment

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

🇫🇮

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed mispelling

@Blu-J Blu-J merged commit b1c2333 into master Aug 23, 2023
@dr-bonez dr-bonez deleted the refactor/service-manager branch November 9, 2023 19:41
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