Some notes:
- New runner on maintenance process will take care of "cleaning" requests on tapes moving into REPACKING/BROKEN state.
- If a copy exists on a different tape the requests needs to be moved. Otherwise, it should be reported back to the user as an error.
- New internal states REPACKING_PENDING/BROKEN_PENDING indicate that the "cleaning" process is in progress. This state is set by the cta-admin command.
- Cta-admin command also sets up a flag in the queue object. This flag will be checked by the maintenance process in order to know when the "cleaning" process should start.
- Cta-admin must create an empty queue object if the object did not exist before. This is needed to avoid race condition. It only applies when setting REPACKING/BROKEN states.
Todo:
- Joao will upgrade the ticket with all the discussed details.