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

fn: cookie and driver api changes #1312

Merged
merged 1 commit into from Nov 15, 2018

Conversation

skinowski
Copy link
Member

Now obsoleted driver.PrepareCookie() call handled image and
container creation. In agent, going forward we will need finer
grained control over the timeouts implied by the contexts.
For this reason, with this change, we split PrepareCookie()
into Validate/Pull/Create calls under Cookie interface.

Now obsoleted driver.PrepareCookie() call handled image and
container creation. In agent, going forward we will need finer
grained control over the timeouts implied by the contexts.
For this reason, with this change, we split PrepareCookie()
into Validate/Pull/Create calls under Cookie interface.
@@ -782,7 +782,21 @@ func (a *agent) runHot(ctx context.Context, call *call, tok ResourceToken, state
// WARNING: we wait forever.
defer cookie.Close(common.BackgroundContext(ctx))

err = a.driver.PrepareCookie(ctx, cookie)
shouldPull, err := cookie.ValidateImage(ctx)
Copy link
Member Author

@skinowski skinowski Nov 15, 2018

Choose a reason for hiding this comment

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

I will add timeouts and better error handling with future PRs here. Agent.go changes in this PR are very basic and intentionally kept to a bare minimum.

Copy link
Contributor

@hibooboo2 hibooboo2 left a comment

Choose a reason for hiding this comment

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

👍

@skinowski skinowski merged commit fe2b9fb into fnproject:master Nov 15, 2018
@skinowski skinowski deleted the cookie_driver_shuffle branch November 15, 2018 00:51
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.

None yet

2 participants