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: event_authors_consistency_cron_worker.rb
    path of file: ./repos/gitlabhq/app/workers/click_house
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ClickHouse
  # rubocop: disable CodeReuse/ActiveRecord -- Building worker-specific ActiveRecord and ClickHouse querie
    
    def collect_values(ids)
      missing_user_ids_from_batch = missing_user_ids(ids)
      context[:last_processed_id] = missing_user_ids_from_batch.last
      context[:author_records_to_delete].concat(missing_user_ids_from_batch)

      to_be_deleted_size = context[:author_records_to_delete].size
      metadata[:modifications] = to_be_deleted_size

      if to_be_deleted_size >= MAX_AUTHOR_DELETIONS
        metadata[:status] = :limit_reached
        return
      end