alphagov/whitehall — pull request #1760 by tekin (2014-10-08 10:08:11+00:00)
Title: Delay queueing of GovspeakContentWorker job

We delay the processing of the govspeak so as to ensure that the GovspeakContent
record actually exists in the database. This is necessary because the
re-editioning process (which clones HtmlAttachments, and thus GovspeakContent)
takes a while and the transaction this happens in may not have completed before
the job is picked up, resulting in ActiveRecord::RecordNotFound errors.