1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/workers/training_auto_cancel_worker.rb

13 lines
282 B
Ruby

# frozen_string_literal: true
# This training will periodically check for trainings reservations to auto-cancel
class TrainingAutoCancelWorker
include Sidekiq::Worker
def perform
Training.find_each do |t|
TrainingService.auto_cancel_reservation(t)
end
end
end