Add a preflight check to reindex_cluster elastic rake task

Problem to solve

The rake task for zero downtime reindexing in advanced search does not do any preflight checks or give feedback if the task fails.

Proposal

Add a preflight check (similar to the checks done in ClusterReindexingService) in the rake task that verifies:

  • no pending migrations
  • alias exists
  • cluster has enough space available