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: auto_queue_handler.rb
    path of file: ./repos/discourse/app/jobs/scheduled
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# This job will automatically act on records that have gone unhandled on a
# queue for a long time.
module Jobs
  class AutoQueueHandler < ::Jobs::Scheduled
    every 1.day

    def execute(args)
      return if SiteSetting.auto_handle_queued_age.to_i.ze
    
    def execute(args)
      return if SiteSetting.auto_handle_queued_age.to_i.zero?

      Reviewable
        .pending
        .where("created_at < ?", SiteSetting.auto_handle_queued_age.to_i.days.ago)
        .each do |reviewable|
          if reviewable.is_a?(ReviewableFlaggedPost)
            reviewable.perform(Discourse.system_user, :ignore_and_do_nothing, expired: true)
          elsif reviewable.is_a?(ReviewableQueuedPost)
            reviewable.perform(Discourse.system_user, :reject_post)
          elsif reviewable.is_a?(ReviewableUser)
            reviewable.perform(Discourse.system_user, :delete_user)
          end
        end