diff options
| author | allencloud <allen.sun@daocloud.io> | 2017-07-06 16:47:21 +0800 |
|---|---|---|
| committer | allencloud <allen.sun@daocloud.io> | 2017-07-10 10:06:24 +0800 |
| commit | 87b4dc2002d50e245f432bbd97e9dee2db25cf96 (patch) | |
| tree | 344acd0fc0d9f7105336563a71349feb97d3456e /api/server/backend | |
| parent | ced0b6cb5bd3acd223dc20a13ba5be1dbf0ff643 (diff) | |
| download | docker-87b4dc2002d50e245f432bbd97e9dee2db25cf96.tar.gz | |
return prune data when context canceled
Signed-off-by: allencloud <allen.sun@daocloud.io>
Diffstat (limited to 'api/server/backend')
| -rw-r--r-- | api/server/backend/build/backend.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/server/backend/build/backend.go b/api/server/backend/build/backend.go index b5a758c387..f93fba93b7 100644 --- a/api/server/backend/build/backend.go +++ b/api/server/backend/build/backend.go @@ -70,7 +70,7 @@ func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string // PruneCache removes all cached build sources func (b *Backend) PruneCache(ctx context.Context) (*types.BuildCachePruneReport, error) { - size, err := b.fsCache.Prune() + size, err := b.fsCache.Prune(ctx) if err != nil { return nil, errors.Wrap(err, "failed to prune build cache") } |
