querysub 0.385.0 → 0.386.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
|
@@ -22,6 +22,7 @@ import { RenderGitRefInfo, UpdateServiceButtons, bigEmoji, buttonStyle } from ".
|
|
|
22
22
|
import { TypedConfigEditor } from "../../library-components/TypedConfigEditor";
|
|
23
23
|
import { managementPageURL } from "../../diagnostics/managementPages";
|
|
24
24
|
import { getLogViewerParams } from "../../diagnostics/logs/IndexedLogs/LogViewerParams";
|
|
25
|
+
import { getScreenName } from "../machineApplyMainCode";
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
|
|
@@ -329,6 +330,7 @@ export class ServiceDetailPage extends qreact.Component {
|
|
|
329
330
|
const outputKey = getPathStr2(key, index + "");
|
|
330
331
|
const isWatching = this.state.watchingOutputs[outputKey].isWatching;
|
|
331
332
|
let outputData = this.state.watchingOutputs[outputKey].data;
|
|
333
|
+
const screenName = getScreenName({ serviceKey: key, index });
|
|
332
334
|
|
|
333
335
|
return <div key={machineId}
|
|
334
336
|
className={css.pad2(12).vbox(10).bord2(0, 0, 20).fillWidth + backgroundColor}
|
|
@@ -337,6 +339,9 @@ export class ServiceDetailPage extends qreact.Component {
|
|
|
337
339
|
className={css.hbox(12)}
|
|
338
340
|
>
|
|
339
341
|
<div className={css.vbox(5)}>
|
|
342
|
+
<div>
|
|
343
|
+
{screenName}
|
|
344
|
+
</div>
|
|
340
345
|
<div>
|
|
341
346
|
{machineId} ({machineInfo.info["getExternalIP"]})
|
|
342
347
|
</div>
|
|
@@ -494,12 +499,6 @@ export class ServiceDetailPage extends qreact.Component {
|
|
|
494
499
|
{this.state.isKillingRolling ? "Killing..." : `💀 Kill ${rollingServiceCount} Rolling Service${rollingServiceCount === 1 ? "" : "s"}`}
|
|
495
500
|
</button>}
|
|
496
501
|
|
|
497
|
-
{!!configT.parameters.rollingWindow && <div>
|
|
498
|
-
<div className={css.colorhsl(0, 50, 50).fontSize(14).fontWeight("bold")}>
|
|
499
|
-
IMPORTANT! Service has a rolling window, so updates might not appear immediately.
|
|
500
|
-
</div>
|
|
501
|
-
</div>}
|
|
502
|
-
|
|
503
502
|
{hasUnsavedChanges && <>
|
|
504
503
|
<Button
|
|
505
504
|
flavor="noui"
|
|
@@ -124,7 +124,7 @@ const getLiveMachineInfo = measureWrap(async function getLiveMachineInfo() {
|
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
const SCREEN_SUFFIX = "-dply";
|
|
127
|
-
function getScreenName(config: { serviceKey: string; index: number }): string {
|
|
127
|
+
export function getScreenName(config: { serviceKey: string; index: number }): string {
|
|
128
128
|
return `${config.serviceKey}-${config.index}${SCREEN_SUFFIX}`.replace(/[^a-zA-Z0-9\-_]/g, "_");
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -398,8 +398,9 @@ const getScreenState = measureWrap(async function getScreenState(populateIsProce
|
|
|
398
398
|
}[]> {
|
|
399
399
|
const prefix = getTmuxPrefix();
|
|
400
400
|
const delimit = "::::";
|
|
401
|
-
//
|
|
402
|
-
|
|
401
|
+
// Use list-sessions instead of list-panes -a to avoid zombie sessions
|
|
402
|
+
// 2>/dev/null suppresses "no server running" errors, -r prevents xargs from running if input is empty
|
|
403
|
+
let screenList = (await runPromise(`${prefix}tmux list-sessions -F "#{session_name}" 2>/dev/null | xargs -r -I {} tmux list-panes -t {} -F "{}${delimit}#{pane_pid}"`))
|
|
403
404
|
.split("\n")
|
|
404
405
|
.filter(x => x.includes(delimit))
|
|
405
406
|
.map(x => ({
|
|
@@ -22,13 +22,13 @@ IMPORTANT! Now I am properly calling shutdown, so none of the streamed logs shou
|
|
|
22
22
|
|
|
23
23
|
//todonext
|
|
24
24
|
|
|
25
|
-
UGH... server notification isn't working now. UGH...
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
2) One of the cyoa instances... does not exist? I think the tmux screen might be in a bad state?
|
|
27
|
+
- Maybe... our collection has... duplicates, and/or, references something broken? Because... tmux ls looks fine to me...
|
|
28
|
+
- In the deployed machines list, we should really show the screen name. Don't we know the screen name? Isn't that the only way we know it's deployed to that machine?
|
|
29
|
+
3) "guessed node id" is never working? At least, on the machine's page it is ALWAYS empty, even though it should be almost always detected...
|
|
31
30
|
|
|
31
|
+
4) Verify it works again, when we have multiple servers
|
|
32
32
|
|
|
33
33
|
Invalid addition, you tried to add 1 + Infinity, operands must be valid numbers
|
|
34
34
|
|