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
2057bc02
Commit
2057bc02
authored
Mar 17, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not retry "git gc"
parent
ea7d062f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
housekeeping_service.rb
app/services/projects/housekeeping_service.rb
+1
-1
gitlab_shell_one_shot_worker.rb
app/workers/gitlab_shell_one_shot_worker.rb
+10
-0
No files found.
app/services/projects/housekeeping_service.rb
View file @
2057bc02
...
...
@@ -24,7 +24,7 @@ module Projects
def
execute
raise
LeaseTaken
if
!
try_obtain_lease
GitlabShellWorker
.
perform_async
(
:gc
,
@project
.
path_with_namespace
)
GitlabShell
OneShot
Worker
.
perform_async
(
:gc
,
@project
.
path_with_namespace
)
ensure
@project
.
update_column
(
:pushes_since_gc
,
0
)
end
...
...
app/workers/gitlab_shell_one_shot_worker.rb
0 → 100644
View file @
2057bc02
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
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