def later(pathname)
      job_id             = BSON::ObjectId.new
      archived_file_name = archive_file(job_id, pathname)

      job = RocketJob::Jobs::UploadFileJob.create!(
        job_class_name:     job_class_name,
        properties:         properties,
        description:        "#{name}: #{pathname.basename}",
        upload_file_name:   archived_file_name.to_s,
        original_file_name: pathname.to_s,
        job_id:             job_id
      )

      logger.info(
        message: 'Created RocketJob::Jobs::UploadFileJob',
        payload: {
          dirmon_entry_name:  name,
          upload_file_name:   archived_file_name.to_s,
          original_file_name: pathname.to_s,
          job_class_name:     job_class_name,
          job_id:             job_id.to_s,
          upload_job_id:      job.id.to_s
        }
      )
      job
    end
def later(pathname)
      job_id             = BSON::ObjectId.new
      archived_file_name = archive_file(job_id, pathname)

      job = RocketJob::Jobs::UploadFileJob.create!(
        job_class_name:     job_class_name,
        properties:         properties,
        description:        "#{name}: #{pathname.basename}",
        upload_file_name:   archived_file_name.to_s,
        original_file_name: pathname.to_s,
        job_id:             job_id
      )

      logger.info(
        message: 'Created RocketJob::Jobs::UploadFileJob',
        payload: {
          dirmon_entry_name:  name,
          upload_file_name:   archived_file_name.to_s,
          original_file_name: pathname.to_s,
          job_class_name:     job_class_name,
          job_id:             job_id.to_s,
          upload_job_id:      job.id.to_s
        }
      )
      job
    end
Archives the file and kicks off a proxy job to upload the file.