Hi, We have experienced multiple instances of failing an update due to slow downloads (some stemming from the Canonical infrastructure, some stemming from our end-user network bandwidth throughput). In order to prevent this cases, we would like to be able to trigger the download via a new snapd API request. Envisioning an update to the /v2/snaps endpoint with this type of request:
{
"action": "cache",
"transaction": "all-package"
}
and then on refresh an additional parameter to use store or cache as the source:
{
"action": "refresh",
"source": "cache",
"transaction": "all-package"
}
I can provide additional information about our use case upon request.
Regards, Vlad