debian-mirror-gitlab/app/workers/environments/auto_stop_cron_worker.rb
2020-03-13 15:44:24 +05:30

17 lines
379 B
Ruby

# 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, default_enabled: true)
AutoStopService.new.execute
end
end
end