@xen-orchestra/backups 0.52.0 → 0.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_backupWorker.mjs CHANGED
@@ -23,7 +23,7 @@ createCachedLookup().patchGlobal()
23
23
 
24
24
  const logger = createLogger('xo:backups:worker')
25
25
  catchGlobalErrors(logger)
26
- const { debug, info } = logger
26
+ const { debug, info, warn } = logger
27
27
 
28
28
  class BackupWorker {
29
29
  #config
@@ -204,6 +204,13 @@ process.on('message', async message => {
204
204
  info('backup has ended')
205
205
  await ignoreErrors.call(backupWorker.debounceResource.flushAll())
206
206
  process.disconnect()
207
+
208
+ setTimeout(() => {
209
+ warn('worker process did not exit automatically, forcing...')
210
+
211
+ // eslint-disable-next-line n/no-process-exit
212
+ process.exit()
213
+ }, 30e3).unref()
207
214
  }
208
215
  }
209
216
  })
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/vatesfr/xen-orchestra.git"
10
10
  },
11
- "version": "0.52.0",
11
+ "version": "0.52.1",
12
12
  "engines": {
13
13
  "node": ">=14.18"
14
14
  },
@@ -58,7 +58,7 @@
58
58
  "tmp": "^0.2.1"
59
59
  },
60
60
  "peerDependencies": {
61
- "@xen-orchestra/xapi": "^7.0.0"
61
+ "@xen-orchestra/xapi": "^7.1.0"
62
62
  },
63
63
  "license": "AGPL-3.0-or-later",
64
64
  "author": {