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

module Gitlab
  module GithubGistsImport
    class StartImportWorker # rubocop:disable Scalability/IdempotentWorker
      include ApplicationWorker

      data_consistency :always
      queue_namespace :github_gists_imp
    
      def perform(user_id, encrypted_token)
        logger.info(structured_payload(user_id: user_id, message: 'starting importer'))

        user = User.find(user_id)
        decrypted_token = Gitlab::CryptoHelper.aes256_gcm_decrypt(encrypted_token)
        result = Gitlab::GithubGistsImport::Importer::GistsImporter.new(user, decrypted_token).execute

        if result.success?
          schedule_finish_worker(user_id, result.waiter)
        elsif result.next_attempt_in
          schedule_next_attempt(result.next_attempt_in, user_id, encrypted_token)
        else
          log_error_and_raise!(user_id, result.error)
        end