praekelt/ndoh-control — pull request #46 by gsvr (2014-12-10 15:08:38+00:00)
Title: Move subscribers out of failure state

- [ ] 1. For ALL message sets: Where active = False, process_status = -1 > Set process_status = 0. (Handles duplicates that have gone into stasis)
- [ ] 2. For ALL message sets: Where lang = '', process_status = -1 > Set process_status = -2 (Handles subscriptions that do not have a lang set)
- [ ] 3. For Chw, Subscription, Babyloss, Miscarriage, Stillbirth: Where process_status = -1 > Set process_status = 2, active = False, completed = True (Handles subscriptions that do not have a follow-up message_set)
- [ ] 4. For Accelerated, Later: Where process_status = -1 > Set process_status = 2, Create new Baby1 subscription with active = True, completed = False, message_set = Baby1, next_sequence_number = _calculated_, schedule = 2/week