diff options
Diffstat (limited to 'app/services/repositories/shell_destroy_service.rb')
-rw-r--r-- | app/services/repositories/shell_destroy_service.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/services/repositories/shell_destroy_service.rb b/app/services/repositories/shell_destroy_service.rb deleted file mode 100644 index d25cb28c6d7..00000000000 --- a/app/services/repositories/shell_destroy_service.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -class Repositories::ShellDestroyService < Repositories::BaseService - REPO_REMOVAL_DELAY = 5.minutes.to_i - STALE_REMOVAL_DELAY = REPO_REMOVAL_DELAY * 2 - - def execute(delay = REPO_REMOVAL_DELAY) - return success unless repository - - GitlabShellWorker.perform_in(delay, - :remove_repository, - repository.shard, - removal_path) - end -end |