mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-11-09 17:06:13 -06:00
fix(backup-reports): prevent succesful backups being sometimes repor… (#9400)
* fix(backup-reports): prevent succesfull backups being sometimes reported as interrupted * increase delay after user feedback * change comment according to delay change --------- Co-authored-by: Florent BEAUCHAMP <florent.beauchamp@vates.tech>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
- [REST API] `vms/:id/dashboard` return now an empty object for the `replication` key instead of undefined (in case of no replication) (PR [#9380](https://github.com/vatesfr/xen-orchestra/pull/9380))
|
||||
- [REST API] `vms/:id/dashboard` rename `not-in-job` into `not-in-active-job` for the `vmProtection` key to avoid confusion (PR [#9380](https://github.com/vatesfr/xen-orchestra/pull/9380))
|
||||
- [REST API] Don't return VDI-snapshot for `/vms/:id/vdis` endpoints (PR [#9381](https://github.com/vatesfr/xen-orchestra/pull/9381))
|
||||
- [Plugins/Backup-reports] Prevent succesful backups from occasionally being reported as interrupted [Forum#11721](https://xcp-ng.org/forum/topic/11721) (PR [#9400](https://github.com/vatesfr/xen-orchestra/pull/9400))
|
||||
- [REST API] `/dashboard` return now `{isEmpty: true}` instead of undefined in case there is no data to compute (PR [#9395](https://github.com/vatesfr/xen-orchestra/pull/9395))
|
||||
- [Backup] Fix `read xxx bytes, maximum size allowed is yyy` for full backup on S3 (PR [#9396](https://github.com/vatesfr/xen-orchestra/pull/9396))
|
||||
|
||||
|
||||
@@ -100,7 +100,8 @@ class BackupReportsXoPlugin {
|
||||
)
|
||||
.run(() => report.call(this, ...args))
|
||||
|
||||
this._eventListener = (...args) => this._report(...args).catch(noop)
|
||||
// 5s delay as a temporary solution to avoid avoid occasionnal interrupted status in backup reports
|
||||
this._eventListener = (...args) => setTimeout(() => this._report(...args).catch(noop), 5000)
|
||||
}
|
||||
|
||||
configure({ toMails, toXmpp, customSubject }) {
|
||||
|
||||
Reference in New Issue
Block a user