querysub 0.667.0 → 0.669.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
|
@@ -8,6 +8,9 @@ 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
10
|
import { initArchives2 } from "../-a-archives/archives2";
|
|
11
|
+
import { getMachineId, getOwnThreadId } from "sliftutils/misc/https/certs";
|
|
12
|
+
import { getDomain } from "../config";
|
|
13
|
+
import { getOwnMachineId } from "sliftutils/misc/https/certs";
|
|
11
14
|
|
|
12
15
|
// 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.
|
|
13
16
|
const NOTIFY_GRACE_PERIOD = 10 * 1000;
|
|
@@ -15,6 +18,13 @@ const NOTIFY_GRACE_PERIOD = 10 * 1000;
|
|
|
15
18
|
// The emergency workflow from the services list page, as one command: commit/publish/push querysub, commit/push the service repo, then point every service config at the new commit with no overlap. Everything here writes to the service configs archives directly, which falls back to backblaze, so this works while the storage servers (and therefore the deploy pages) are down.
|
|
16
19
|
async function main() {
|
|
17
20
|
disablePathAuditer();
|
|
21
|
+
require("debugbreak")(2);
|
|
22
|
+
debugger;
|
|
23
|
+
|
|
24
|
+
console.log({
|
|
25
|
+
machineId: getOwnMachineId(getDomain()),
|
|
26
|
+
threadId: getOwnThreadId(getDomain()),
|
|
27
|
+
})
|
|
18
28
|
|
|
19
29
|
let controller = new MachineServiceControllerBase();
|
|
20
30
|
let commitMessage = `emergency update ${formatDateTime(Date.now())}`;
|