Sha256: 1412ce70e08a6095eb36e6d1786f21a6cbfc716bc34d627a8330ae627737669c

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module Executo
  class FeedbackProcessJob < ActiveJob::Base
    def perform(feedback, results)
      feedback_service_class = feedback['service']&.safe_constantize
      unless feedback_service_class
        Executo.logger.error("Feedback service #{feedback['service']} not found")
        return
      end

      feedback_service_class.process_feedback(feedback, results)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
executo-0.3.12 lib/executo/feedback_process_job.rb