class ActiveJob::QueueAdapters::ActiveElasticJobAdapter::SerializedJobTooBig

Raised when job exceeds 256 KB in its serialized form. The limit is imposed by Amazon SQS.

Public Class Methods

new(serialized_job) click to toggle source
Calls superclass method
# File lib/active_job/queue_adapters/active_elastic_job_adapter.rb, line 29
        def initialize(serialized_job)
          super(<<-MSG)
            The job contains #{serialized_job.bytesize} bytes in its serialzed form,
            which exceeds the allowed maximum of #{MAX_MESSAGE_SIZE} bytes imposed by Amazon SQS.
          MSG
        end