-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
chore: kill docker container #1927
Conversation
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
pkg/core/app/app.go
Outdated
@@ -414,6 +414,34 @@ func (a *App) Run(ctx context.Context, inodeChan chan uint64) models.AppError { | |||
} | |||
return a.run(ctx) | |||
} | |||
func (a *App) getDockerMetaSync() { |
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.
Change this name, as it is not getting something and also don't mention sync, if it is a blocking call then it is already in sync.
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.
updated the same
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
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.
LGTM!
containerID := a.container | ||
for { | ||
select { | ||
case <-logTicker.C: |
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.
also add ctx.done check
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 is it needed when we're running it after context done? If we do so would be unable to inspect the docker as context is already cancelled.
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
b5159ef
to
7ece039
Compare
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Solution
Closes: #1904