Add retry as a migration option to Elasticsearch migrations
Proposal
Currently migrations can be built with retry logic but it is added manually. We should build an automated retry feature as a new ee/app/workers/concerns/elastic/migration_options.rb. The feature could have a default MAX_RETRIES
and also have a configurable max_retries
if someone wishes to change it. This would allow developers to write migrations and not worry that they will run forever if an issue is encountered.