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: 8fcda35b414d74b62da0c16ee7199c2a19bb621e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

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

    feature_category :continuous_delivery

    def perform
      return unless Feature.enabled?(:auto_stop_environments)

      AutoStopService.new.execute
    end
  end
end