You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: data_cleanup_job.rb
    path of file: ./repos/weg-li/app/jobs/scheduled
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Scheduled::DataCle
    
  def perform
    Rails.logger.info "cleaning up data"

    data_sets = DataSet.where("created_at < ?", 6.month.ago)

    notify("cleaning up old data #{data_sets.count} data_sets")
    data_sets.delete_all

    data_sets = DataSet.joins("INNER JOIN notices ON notices.id = setable_id AND notices.status = 3").order(:created_at).where("data_sets.created_at < ?", 1.month.ago).limit(10_000)

    notify("cleaning up shared data #{data_sets.count} data_sets")
    data_sets.delete_all
  end