since refreshing the repository metadata is basically a "system operation", shouldn't we register this in thread ? It somehow seems safer to me