refgenie / refgenconf

A Python object for standardized reference genome assets.
http://refgenie.databio.org
BSD 2-Clause "Simplified" License
3 stars 6 forks source link

chk_digest_update_child checks and writes asset relationship multiple times #70

Closed stolarczyk closed 5 years ago

stolarczyk commented 5 years ago

With multiple servers defined this method will check and update the asset relationship data multiple times (for each server).

We should not loop through all the servers here since this method is called in refgenie after a successful asset pull to check and update asset relationship data. Consequently, we just need to record the server that the new asset was actually pulled from (in pull_asset method) and pass the URL here and use just this URL.

_Originally posted by @michalstolarczyk in https://github.com/databio/refgenconf/pull/68/review_comment/create_