intercity/intercity-next

View on GitHub
app/jobs/schedule_automated_backups_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ScheduleAutomatedBackupsJob < ApplicationJob
  queue_as :default

  def perform
    App.where(backups_enabled: true).each do |app|
      BackupScheduler.new(app).execute(type: :automatic)
    end
  end
end