Skip to content
Snippets Groups Projects
Commit d4690af8 authored by Jeroen Nijhof's avatar Jeroen Nijhof
Browse files

Use GitlabShellWorker.perform_async for housekeeping

parent 839aae0e
No related branches found
No related tags found
1 merge request!1658Added housekeeping for git repositories
Loading
Loading
@@ -172,14 +172,10 @@ class ProjectsController < ApplicationController
end
 
def housekeeping
status = ::Projects::HousekeepingService.new(@project).execute
::Projects::HousekeepingService.new(@project).execute
 
respond_to do |format|
if status
flash[:notice] = "Housekeeping finished successfully."
else
flash[:alert] = "Housekeeping failed."
end
flash[:notice] = "Housekeeping successfully started."
format.html { redirect_to project_path(@project) }
end
end
Loading
Loading
Loading
Loading
@@ -14,7 +14,7 @@ module Projects
end
 
def execute
gitlab_shell.gc(@project.path_with_namespace)
GitlabShellWorker.perform_async(:gc, @project.path_with_namespace)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment