🚑 Increase snapshot creation time-out

This commit is contained in:
Sebastien Clement 2020-09-23 19:34:24 +02:00
parent b4be373a0c
commit c8256e2d08

View File

@ -9,6 +9,9 @@ const pipeline = promisify(stream.pipeline);
const got = require ('got');
const create_snap_timeout = 90 * 60 * 1000
function getSnapshots() {
return new Promise((resolve, reject) => {
@ -154,7 +157,7 @@ function downloadSnapshot(id) {
let option = {
headers: { 'X-HASSIO-KEY': token },
responseType: 'json',
timeout: 2400000,
timeout: create_snap_timeout,
json: { name: name }
};