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

auto_stop_cron_worker.rb « environments « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 26b18c406e59e9b91ad64f12179c59ebe41c2b5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Environments
  class AutoStopCronWorker # rubocop:disable Scalability/IdempotentWorker
    include ApplicationWorker

    data_consistency :always

    include CronjobQueue # rubocop:disable Scalability/CronWorkerContext

    feature_category :continuous_delivery
    worker_resource_boundary :cpu

    def perform
      AutoStopService.new.execute
      AutoRecoverService.new.execute
    end
  end
end