Skip to content

Commit

Permalink
Rearrange daemon startup sequence (#214)
Browse files Browse the repository at this point in the history
[#191] Container remains Stopped after container-management service restart 

* Rearrange daemon startup sequence
* Add dev branch to the workflow

Signed-off-by: Kristiyan Gostev <[email protected]>
  • Loading branch information
k-gostev committed Apr 30, 2024
1 parent 898c6c8 commit a8f764d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
pull_request:
branches:
- main
- dev-m5
paths-ignore:
- "**/*.md"
push:
branches:
- dev-m5
- main
paths-ignore:
- "**/*.md"
Expand Down
7 changes: 6 additions & 1 deletion containerm/daemon/daemon_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import (
func (d *daemon) start() error {
log.Debug("starting daemon instance")

if err := d.startGrpcServers(); err != nil {
log.ErrorErr(err, "could not start gRPC servers")
return err
}

if err := d.loadContainerManagersStoredInfo(); err != nil {
log.ErrorErr(err, "could not load and restore persistent data for the Container Manager Services")
return err
Expand Down Expand Up @@ -54,7 +59,7 @@ func (d *daemon) start() error {
log.Debug("Containers Update Agent is not enabled.")
}

return d.startGrpcServers()
return nil
}

func (d *daemon) stop() {
Expand Down

0 comments on commit a8f764d

Please sign in to comment.