summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcia Ramos <virtua.creative@gmail.com>2018-01-18 17:27:16 +0000
committerMarcia Ramos <virtua.creative@gmail.com>2018-01-18 17:27:16 +0000
commit7b0872c7237a21eacd076b09be5712a4ef63b99f (patch)
tree2d1fae14cb0e1533a53697c3746d39dfd4659826
parent210e6e8a654a026443af1fd1f007a5fc093e7ac2 (diff)
parentf7fb6a5f903817dc48a971f1f4b1c076b6a7ec70 (diff)
downloadgitlab-ce-41938-create-merge-request-from-issue-page-styling-broken-and-source-dropdown-broken.tar.gz
Add cache clearing documentation Closes #41940 See merge request gitlab-org/gitlab-ce!16559
-rw-r--r--doc/ci/runners/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/ci/runners/README.md b/doc/ci/runners/README.md
index df66810a838..03aa6ff8e7c 100644
--- a/doc/ci/runners/README.md
+++ b/doc/ci/runners/README.md
@@ -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