mperham/sidekiq — pull request #1843 by mikegee (2014-07-12 02:29:25+00:00)
Title: only keep the first 4k of the error message

Errors can have messages that are very large. When they are raised, redis space is rapidly depleted.

An example of this problem is an INSERT or UPDATE in ActiveRecord with a very large blob of data. When ActiveRecord fails, it puts the entire SQL statement into the error message.