debian-mirror-gitlab/app/workers/environments/auto_stop_cron_worker.rb

19 lines
405 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module Environments
2020-04-08 14:13:33 +05:30
class AutoStopCronWorker # rubocop:disable Scalability/IdempotentWorker
2020-03-13 15:44:24 +05:30
include ApplicationWorker
2021-06-08 01:23:25 +05:30
2021-10-27 15:23:28 +05:30
data_consistency :always
2020-03-13 15:44:24 +05:30
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :continuous_delivery
2021-10-27 15:23:28 +05:30
worker_resource_boundary :cpu
2020-03-13 15:44:24 +05:30
def perform
AutoStopService.new.execute
end
end
end