Apart from reprocessing the last failed document from the admin console, we should be able to do it from the console as a task. This can be defined as:
rake production app:reprocess_failed
Possible options could include (exclusively):
- Process all failed docs when no arguments passed.
- Document id argument
- Organisation id argument
- Account id argument
- Last failed flag