querysub 0.623.0 → 0.625.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.623.0",
3
+ "version": "0.625.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -79,7 +79,7 @@
79
79
  "node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
80
80
  "pako": "^2.1.0",
81
81
  "peggy": "^5.0.6",
82
- "sliftutils": "^1.7.90",
82
+ "sliftutils": "^1.7.94",
83
83
  "socket-function": "^1.2.30",
84
84
  "terser": "^5.31.0",
85
85
  "typenode": "^6.6.1",
@@ -76,14 +76,14 @@ function archiveBuilder(bucket: string, overrides: Partial<RemoteConfigBase>) {
76
76
  // NOTE: Once we add new sources, we need to add something at a new start time in the future so we have time to move the files.
77
77
  // TODO: EVENTUALLY, Once we have enough data, instead of restriping, we need to bisect the data. That way we can slowly move over the data instead of trying to rewrite all of our data all at once. However, for the moment, moving all the data is probably fine. On the data center, we should be able to move terabytes of data every hour, so we should be able to handle quite a bit, especially if we have a few days to run the restriping.
78
78
  // IMPORTANT! Every time we re-stripe, we need to increment the route version. Otherwise, we could reuse a folder that we previously used that's no longer in sync. which will cause us to resurrect old data, which is very bad. We don't want to do that...
79
- ...stripeSources([ONTARIO, HETZNER], { routeVersion: 1 }),
79
+ ...stripeSources([ONTARIO, HETZNER], { routeVersion: 2 }),
80
80
  { type: "backblaze", url: BACKBLAZE, name: "backblaze" },
81
81
  ]
82
82
  },
83
83
  ]);
84
84
 
85
85
  return createArchives({
86
- version: 23,
86
+ version: 25,
87
87
  sources,
88
88
  });
89
89
  }
@@ -202,6 +202,6 @@ export async function initArchives2() {
202
202
  getArchives2Public(""),
203
203
  ];
204
204
  for (let bucket of buckets) {
205
- await bucket.hasWriteAccess()
205
+ await bucket.hasWriteAccess();
206
206
  }
207
207
  }
@@ -7,6 +7,7 @@ import { formatDateTime } from "socket-function/src/formatting/format";
7
7
  import { green, magenta } from "socket-function/src/formatting/logColors";
8
8
  import { delay } from "socket-function/src/batching";
9
9
  import { MachineServiceControllerBase, ServiceConfig } from "./machineSchema";
10
+ import { initArchives2 } from "../-a-archives/archives2";
10
11
 
11
12
  // setServiceConfigs notifies the machines without awaiting the notifications, so we linger before exiting to let them go out. If they are lost anyway (ex, the machines are unreachable), the machines still pick up the new configs on their fallback resync poll.
12
13
  const NOTIFY_GRACE_PERIOD = 10 * 1000;
@@ -73,6 +74,8 @@ async function main() {
73
74
  await delay(NOTIFY_GRACE_PERIOD);
74
75
 
75
76
  console.log(green(`Emergency update complete: ${outdated.length} services updating to ${gitInfo.latestRef}`));
77
+
78
+ await initArchives2();
76
79
  }
77
80
 
78
81
  main().catch(logErrors).finally(() => process.exit());