lib/rocket_job/sliced/input.rb
# Iterate over each failed record, if any
# Since each slice can only contain 1 failed record, only the failed
# record is returned along with the slice containing the exception
# details
#
# Example:
#   job.each_failed_record do |record, slice|
#     ap slice
#   end
#
Iterate over each failed record, if any
Since each slice can only contain 1 failed record, only the failed
record is returned along with the slice containing the exception
details

job.each_failed_record do |record, slice|
ap slice
end
Iterate over each failed record if any Since each slice can only contain 1 failed record only the failed record is returned along with the slice containing the exception details job . each_failed_record do |record slice| ap slice end
def each_failed_record
        failed.each do |slice|
          if slice.exception && (record_number = slice.exception.record_number)
            yield(slice.at(record_number - 1), slice)
          end
        end
      end
def each_failed_record failed . each do | slice | if slice . exception && ( record_number = slice . exception . record_number ) yield ( slice . at ( record_number - 1 ) , slice ) end end end
Iterate over each failed record, if any
Since each slice can only contain 1 failed record, only the failed
record is returned along with the slice containing the exception
details
Iterate over each failed record if any Since each slice can only contain 1 failed record only the failed record is returned along with the slice containing the exception details