Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-03-17 13:02:11 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-03-17 13:02:11 +0300
commit2057bc02a31a20765e165b503b877350e892908b (patch)
tree87655ea8b9a12368062bd7096258aedf8265a666 /app/workers
parentea7d062fa60e3e622288237fc66a815348bbcf36 (diff)
Do not retry "git gc"
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/gitlab_shell_one_shot_worker.rb10
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