-
Notifications
You must be signed in to change notification settings - Fork 106
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
Conversation
Co-authored-by: Aiden McClelland <[email protected]>
Co-authored-by: Aiden McClelland <[email protected]>
…_svc_effect_handlers
…_svc_effect_handlers
@@ -116,7 +116,7 @@ export class PolyfillEffects implements oet.Effects { | |||
this.manifest.volumes, | |||
) | |||
const daemon = dockerProcedureContainer.then((dockerProcedureContainer) => | |||
daemons.runDaemon()( | |||
daemons.runCommand()( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.