CodeForAfrica / sourceAFRICA

sourceAFRICA is the continent's largest repository of documentary evidence and other "actionable documents" from investigative journalists and civic watchdogs. Forked from DocumentCloud.org, and built on the Ruby on Rails framework, the project is accessible here: https://sourceafrica.net/
https://sourceafrica.net
Other
11 stars 9 forks source link

Create task to reprocess failed documents #68

Open DavidLemayian opened 8 years ago

DavidLemayian commented 8 years ago

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):

  1. Process all failed docs when no arguments passed.
  2. Document id argument
  3. Organisation id argument
  4. Account id argument
  5. Last failed flag