icgc-argo / workflow-relay

Collecting information from workflows to report
GNU Affero General Public License v3.0
1 stars 0 forks source link

Add retry mechanism for indexing #17

Closed Buwujiu closed 4 years ago

Buwujiu commented 4 years ago

What's done in this PR: Changed updateAsync() to update synchronously indexAsync to index synchronously.

Running multiple nextflow while having index service shut down will not trigger the version_conflict_exception anymore, since indices are being updated synchronously. In order to trigger retry, start index service first, run nextflow, then shut down elasticsearch.

andricDu commented 4 years ago

Thanks!