metaspace2020 / metaspace

Cloud engine and platform for metabolite annotation for imaging mass spectrometry
https://metaspace2020.eu/
Apache License 2.0
47 stars 10 forks source link

Added one retry to ES update #1417

Closed lmacielvieira closed 1 year ago

lmacielvieira commented 1 year ago

Description

Retrying ElasticSearch update once more, in case a version conflict (elasticsearch.ConflictError) error is triggered. This error implies that the document has been modified since you last fetched or referenced it, but update_by_query does not have the option refresh='wait_for' like the ES5, so a retry approach will be applied. #1412