How to reproduce/sanitize messy POST params to avoid YAML serialization issues with delayed_job?
问题 Today, every time I was starting delayed_job workers, the process would die immediately and silently. After some investigation (and finding out about the foreground mode of delayed_job ), I finally found out the problem was the way delayed_job had serialized my active record object was triggering an exception on the YAML load part: Psych::SyntaxError: (<unknown>): mapping keys are not allowed in this context at line 7 column 14 from /Users/mick/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych