Replication Flow Updates
Currently toward the end of the replication flow, we issue both the token ingest and audit http calls without blocking. This means that if there's an error in the token ingest it's possible to have an audit run with an incomplete set of tokens. We should instead check the number of tokens that a collection has before starting an audit.
Note that we will probably want some logic to choose between issuing a token ingest or an audit:
- If it is not ingesting tokens, and the number of tokens < collection.num_files: token ingest
- Else if it is not ingesting tokens and the number of tokens == collection.num_files: audit
ACE likely does not have some of these capabilities in its api, so it will need some dev work done first before we can do anything here.