mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 17:22:58 +01:00
🚑 Increase snapshot creation time-out
This commit is contained in:
parent
b4be373a0c
commit
c8256e2d08
@ -9,6 +9,9 @@ const pipeline = promisify(stream.pipeline);
|
|||||||
const got = require ('got');
|
const got = require ('got');
|
||||||
|
|
||||||
|
|
||||||
|
const create_snap_timeout = 90 * 60 * 1000
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getSnapshots() {
|
function getSnapshots() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@ -154,7 +157,7 @@ function downloadSnapshot(id) {
|
|||||||
let option = {
|
let option = {
|
||||||
headers: { 'X-HASSIO-KEY': token },
|
headers: { 'X-HASSIO-KEY': token },
|
||||||
responseType: 'json',
|
responseType: 'json',
|
||||||
timeout: 2400000,
|
timeout: create_snap_timeout,
|
||||||
json: { name: name }
|
json: { name: name }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user