@abtnode/constant 1.16.21-beta-445a8baa → 1.16.21-beta-2e75c75c

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.
Files changed (2) hide show
  1. package/index.js +23 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -318,6 +318,27 @@ const BACKUPS = {
318
318
  },
319
319
  };
320
320
 
321
+ const CHECK_UPDATE = {
322
+ STATUS: {
323
+ PROGRESS: null,
324
+ SUCCEEDED: 0,
325
+ FAILED: 1,
326
+ },
327
+ // 备份的超时时间是 6 小时
328
+ TIMEOUT_HOURS: 6,
329
+ // 备份策略
330
+ STRATEGY: {
331
+ // 自动备份
332
+ AUTO: 0,
333
+ // 手动备份
334
+ MANUAL: 1,
335
+ },
336
+ JOB: {
337
+ // 自动备份的时间间隔,单位为 s,目前是间隔2个小时
338
+ INTERVAL: 2 * 60 * 60,
339
+ },
340
+ };
341
+
321
342
  // 10s 上报统计一次
322
343
  const MONITOR_RECORD_INTERVAL_SEC = 10;
323
344
 
@@ -547,6 +568,8 @@ module.exports = Object.freeze({
547
568
  PROD_DID_SPACES,
548
569
  BACKUPS,
549
570
 
571
+ CHECK_UPDATE,
572
+
550
573
  MONITOR_HISTORY_LENGTH,
551
574
  MONITOR_RECORD_INTERVAL_SEC,
552
575
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.21-beta-445a8baa",
6
+ "version": "1.16.21-beta-2e75c75c",
7
7
  "description": "ABT Node constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -20,5 +20,5 @@
20
20
  "devDependencies": {
21
21
  "jest": "^27.5.1"
22
22
  },
23
- "gitHead": "7a7ff8be7f424775c3bde0eead773d8e6177fa1a"
23
+ "gitHead": "1fca0b58e1ed4f7a9bb268829a7c84290a01c89d"
24
24
  }