This is a spike to capture design for extensions to the existing tenant API that introduces more granular phases. The goal is to enable Okapi (and through Okapi a client that runs migration) to commit or rollback migrations when underlying module migration fails.
Task: collect some use cases, requirements, and described limitations of the current approach.
The design is being captured here: https://wiki.folio.org/display/FOLIJET/Async+install
Note: the wiki page needs to be updated with API changes that have already been implemented for install/upgrade Okapi API and changes that are being implemented for the async tenant API (Okapi-to-module).
Note: the scope of this ticket includes a PoC to verify the feasibility of the implementation in the storage module like mod-inventory-storage.