Sha256: 47d297efc94ebf49209058748f5b0810e277d1e6c8e63f0fe97e51906cdebbea
Contents?: true
Size: 606 Bytes
Versions: 5
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true module Aws module Rails module SqsActiveJob # @api private class JobRunner attr_reader :id, :class_name def initialize(message) @job_data = Aws::Json.load(message.data.body) @class_name = @job_data['job_class'].constantize @id = @job_data['job_id'] end def run ActiveJob::Base.execute @job_data end def exception_executions? @job_data['exception_executions'] && !@job_data['exception_executions'].empty? end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems