diff options
author | Robert Speicher <robert@gitlab.com> | 2016-03-18 20:26:40 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-03-18 20:26:40 +0000 |
commit | c790107854658a37d97b9a1c9066338eb12b06bf (patch) | |
tree | bc1c55851f7a78c0453a6a99be7b1a12af3e14e9 /app/workers | |
parent | 49534a65963f6bb1bda57230ae9c320037fc176b (diff) | |
parent | 5d9cf7b415f58b15a28ec4c7a3c6563a49e02981 (diff) | |
download | gitlab-ce-c790107854658a37d97b9a1c9066338eb12b06bf.tar.gz |
Merge branch 'no-gc-retry' into 'master'
Do not retry "git gc"
To prevent 'git gc' timing out on a large repo and then bouncing
around in the retry queue.
See merge request !3266
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/gitlab_shell_one_shot_worker.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/workers/gitlab_shell_one_shot_worker.rb b/app/workers/gitlab_shell_one_shot_worker.rb new file mode 100644 index 00000000000..4ddbcf574d5 --- /dev/null +++ b/app/workers/gitlab_shell_one_shot_worker.rb @@ -0,0 +1,10 @@ +class GitlabShellOneShotWorker + include Sidekiq::Worker + include Gitlab::ShellAdapter + + sidekiq_options queue: :gitlab_shell, retry: false + + def perform(action, *arg) + gitlab_shell.send(action, *arg) + end +end |