This is for preventing race conditions and keep ML service as a controller of medialibrary
mentioned in commit 95ffaf0d