Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
app/services/projects/housekeeping_service.rb
app/services/projects/housekeeping_service.rb
+1
-1
app/workers/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