I have a custom before task that I execute before running a configuration in one of our project.
The task performs the following steps:
- Delete some previously generated files (if any)
- Force to save the model(s) involved in the run config. This is done with the SaveRepositoryCommand executed inside an invokeAndWait closure
- Rebuild the model(s). This is largely based on the MakePointers task available in the MPS platform.
Now, the problem is that between steps 2 and 3, every now and then, the task fails with a message saying "Generation is not available until indices are built".
Is there any way to synchronize these two steps?