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: Making the daemons keep up the status. #2617

Merged
merged 19 commits into from
May 13, 2024

Conversation

Blu-J
Copy link
Contributor

@Blu-J Blu-J commented May 8, 2024

No description provided.

@Blu-J Blu-J marked this pull request as ready for review May 10, 2024 16:09
@@ -116,7 +116,7 @@ export class PolyfillEffects implements oet.Effects {
this.manifest.volumes,
)
const daemon = dockerProcedureContainer.then((dockerProcedureContainer) =>
daemons.runDaemon()(
daemons.runCommand()(
Copy link
Member

Choose a reason for hiding this comment

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

Why this change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, the reason is that a daemon is something that we start and run. It will keep trying, to run in the background.

A command is something that runs once and is done. This is doing things with a normal command and tries the cleanup that was with the old command.

Copy link
Member

Choose a reason for hiding this comment

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

ok, as long as this runCommand isn't collecting output, we don't want to be leaking memory buffering logs

Status::Stopped => context.stopped(),
SetMainStatusStatus::Running => context.started(),
SetMainStatusStatus::Stopped => context.stopped(),
SetMainStatusStatus::Starting => context.stopped(),
Copy link
Member

Choose a reason for hiding this comment

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

Why add a varient if just treating as 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.

To indicate a state, that it is trying to getting things started. Could be more usefull or not, but for now just not doing anything with this information until I talk with you.

dr-bonez
dr-bonez previously approved these changes May 10, 2024
@dr-bonez dr-bonez changed the base branch from more_svc_effect_handlers to next/minor May 10, 2024 19:21
@dr-bonez dr-bonez dismissed their stale review May 10, 2024 19:21

The base branch was changed.

@dr-bonez dr-bonez merged commit 0b8a142 into next/minor May 13, 2024
9 checks passed
@Blu-J Blu-J deleted the feature/daemons-keep-up branch May 13, 2024 16:50
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.

3 participants