-
-
Notifications
You must be signed in to change notification settings - Fork 586
feat(termination)!: make container termination timeout configurable #2926
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
Changes from all commits
8632a79
ac8ce58
4cdb318
d994d55
c38f36b
1377520
6f16fa0
6461173
ac27a52
f4c786f
12a8722
f6d6fd2
4ccbbb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,7 +50,7 @@ type Container interface { | |
| Stop(context.Context, *time.Duration) error // stop the container | ||
|
|
||
| // Terminate stops and removes the container and its image if it was built and not flagged as kept. | ||
| Terminate(ctx context.Context) error | ||
| Terminate(ctx context.Context, opts ...TerminateOption) error | ||
moogacs marked this conversation as resolved.
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, I wonder why we need a separate parameter for the timeout when a context is already provided to As a user, I expect this to work fine. Does this code not do what is expected? ctx, _ := context.WithTimeout(context.Background(), time.Second*10)
c.Terminate(ctx)If a |
||
|
|
||
| Logs(context.Context) (io.ReadCloser, error) // Get logs of the container | ||
| FollowOutput(LogConsumer) // Deprecated: it will be removed in the next major release | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.