The original code existed because we were not able to store multiple Compose IDs in Freshmaker's DB, so the Freshmaker waited for the result of Pulp compose to workaround this. This is no longer true for some time and therefore the code for waiting for a compose can be removed.
This also fixes the possible race condition between "parent image build" and "child image ODCS compose being done" issue in RebuildImageOnODCSComposeDone handler.
The original code existed because we were not able to store multiple Compose IDs in Freshmaker's DB, so the Freshmaker waited for the result of Pulp compose to workaround this. This is no longer true for some time and therefore the code for waiting for a compose can be removed.
This also fixes the possible race condition between "parent image build" and "child image ODCS compose being done" issue in RebuildImageOnODCSComposeDone handler.
See the commit messages for more info.