BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
15982e8e
Commit
15982e8e
authored
Jan 18, 2018
by
Marcia Ramos
Committed by
Robert Speicher
Jan 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'docs/runners-clear-cache' into 'master'
Add cache clearing documentation Closes #41940 See merge request gitlab-org/gitlab-ce!16559
parent
107ac396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
README.md
doc/ci/runners/README.md
+22
-0
No files found.
doc/ci/runners/README.md
View file @
15982e8e
...
...
@@ -144,6 +144,28 @@ To protect/unprotect Runners:
![
specific Runners edit icon
](
img/protected_runners_check_box.png
)
## Manually clearing the Runners cache
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/41249) in GitLab 10.4.
GitLab Runners use
[
cache
](
../yaml/README.md#cache
)
to speed up the execution
of your jobs by reusing existing data. This however, can sometimes lead to an
inconsistent behavior.
To start with a fresh copy of the cache, you can easily do it via GitLab's UI:
1.
Navigate to your project's
**CI/CD > Pipelines**
page.
1.
Click on the
**Clear Runner caches**
to clean up the cache.
1.
On the next push, your CI/CD job will use a new cache.
That way, you don't have to change the
[
cache key
](
../yaml/README.md#cache-key
)
in your
`.gitlab-ci.yml`
.
Behind the scenes, this works by increasing a counter in the database, and the
value of that counter is used to create the key for the cache. After a push, a
new key is generated and the old cache is not valid anymore. Eventually, the
Runner's garbage collector will remove it form the filesystem.
## How shared Runners pick jobs
Shared Runners abide to a process queue we call fair usage. The fair usage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment