feat(hub): the hardware chart marks a blocked queue head and suspect-hung jobs
Each resources sample runs queue.py list --json once (the installed kvb-org-queue script, --queue in the unit, AGENTS_COUNCIL_ROOT set to the council) and keeps queue.head, {id, kind, waited_s, reason} of the first waiting row, and queue.hung, the ids of active rows whose reason says suspect hung; both are left out without one or while that run fails or prints no JSON list, and id, kind and reason are cut to 64 and 240 characters. Folded 15-minute and daily rows keep the last head and every hung id. The hardware chart draws a red band where the queue head waited blocked and a violet dashed band for suspect-hung jobs, each clickable for its job. MB becomes MEGABYTE.
The unit takes --queue /kvb-org-queue/scripts/queue.py; the install writes KVB_ORCHESTRATOR_SKILLS into the hub's .env (scripts/orchestrator.sh), which the offices unit already uses.
Applied cleanly onto motion (86a60c7); none of the 7 files changed on master since its base 2aea6d1.
Tests: test_hub_resources and test_resources_sample. Written, not run: the full suite runs once on master after all bundles (operator order).
Security: MEDUSA over the staged tree on master: 100, no findings over 5 files; kvb-orchestrator-resources.service (one added --queue argument) and style-resources.css (four style rules) are not covered and were read by hand.
🎯 Fix: 90 %
💥 Break: 5 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 86
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86a60c7998
commit
9d313f227d
7 files changed
+370
-36
No files matched your search
@@ -2,10 +2,14 @@
|
||||
"""Args:
|
||||
sample: append one row to <state>/samples.jsonl: {t, disks: [{mount,
|
||||
used, total}], cpu, ram, swap, load, gpus: [{name, util, vram_used,
|
||||
vram_total} | {name, asleep: true}], queue: {waiting, active},
|
||||
psi_some, psi_full, swap_out_mb_min}; t in epoch seconds, used, total
|
||||
and vram in bytes, cpu, ram, swap and util in percent, load the
|
||||
1-minute load average, a GPU named by its PCI address. cpu is the
|
||||
vram_total} | {name, asleep: true}], queue: {waiting, active, head,
|
||||
hung}, psi_some, psi_full, swap_out_mb_min}; t in epoch seconds, used,
|
||||
total and vram in bytes, cpu, ram, swap and util in percent, load the
|
||||
1-minute load average, a GPU named by its PCI address. head is {id,
|
||||
kind, waited_s, reason} of the first waiting row of one `queue.py
|
||||
list --json` run per sample, hung the ids of its active rows whose
|
||||
reason says suspect hung; each is left out without one, and both
|
||||
while that run fails or prints no JSON list. cpu is the
|
||||
busy share of the /proc/stat ticks since those the run before kept in
|
||||
<state>/cpu.json as [t, idle, total], None on the first run and after
|
||||
a gap of more than 15 minutes. psi_some and psi_full are the avg10 of
|
||||
@@ -19,8 +23,9 @@
|
||||
and vram None. In the first minute of a 15-minute bucket, rows older
|
||||
than 7 days fold into 15-minute means and means older than 90 days
|
||||
into one mean per day, kept forever, each row weighted by the seconds
|
||||
it sampled; a folded row carries span, the seconds its rows sampled
|
||||
(60 per raw row), and width, the seconds of its bucket.
|
||||
it sampled, the queue keeping the last head and every hung id; a
|
||||
folded row carries span, the seconds its rows sampled (60 per raw
|
||||
row), and width, the seconds of its bucket.
|
||||
tokens: add the input, output, cache-read and cache-write tokens of the
|
||||
usage fields in the Claude Code transcripts under --transcripts since
|
||||
each file's byte offset to <state>/tokens.jsonl as {t, agent, model,
|
||||
@@ -37,6 +42,8 @@
|
||||
--state: the directory of these files, the unit passes
|
||||
~/.local/state/agents-council/resources.
|
||||
--council: the council directory with queue.json and the claims.
|
||||
--queue (sample): the installed kvb-org-queue queue.py, run with
|
||||
AGENTS_COUNCIL_ROOT set to --council.
|
||||
--transcripts (tokens): Claude Code's projects directory.
|
||||
--proc, --sys (sample): where /proc and /sys are mounted.
|
||||
|
||||
@@ -61,6 +68,7 @@ import os
|
||||
import shutil
|
||||
import stat
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
@@ -93,7 +101,11 @@ OFFSETS = "offsets.json"
|
||||
TICKS = "cpu.json"
|
||||
SWAPPED = "swap.json"
|
||||
PAGE_BYTES = os.sysconf("SC_PAGE_SIZE")
|
||||
MB = 1_000_000
|
||||
MEGABYTE = 1_000_000
|
||||
QUEUE_ARGS = ("list", "--json")
|
||||
ID_TEXT = 64
|
||||
REASON_TEXT = 240
|
||||
HUNG = "suspect hung ("
|
||||
|
||||
|
||||
def read_text(path: Path) -> str:
|
||||
@@ -258,6 +270,56 @@ def queue(council: Path) -> dict:
|
||||
return {"waiting": statuses.count("waiting"), "active": statuses.count("active")}
|
||||
|
||||
|
||||
def string_of(value: object) -> str:
|
||||
return value if isinstance(value, str) else ""
|
||||
|
||||
|
||||
def queue_rows(text: str | None) -> list[dict] | None:
|
||||
"""Returns:
|
||||
The objects of the JSON list `queue.py list --json` printed as text;
|
||||
None when text holds no JSON list.
|
||||
"""
|
||||
try:
|
||||
data = json.loads(text) if text else None
|
||||
except (ValueError, RecursionError):
|
||||
return None
|
||||
return [row for row in data if isinstance(row, dict)] if isinstance(data, list) else None
|
||||
|
||||
|
||||
def head_of(rows: list[dict]) -> dict | None:
|
||||
"""Returns:
|
||||
{id, kind, waited_s, reason} of the first waiting row, id and kind cut
|
||||
to ID_TEXT characters, reason to REASON_TEXT; None without a waiting
|
||||
row or when it lacks a string id or a number waited_s.
|
||||
"""
|
||||
first = next((row for row in rows if row.get("status") == "waiting"), None)
|
||||
if first is None or not isinstance(first.get("id"), str) or not is_number(first.get("waited_s")):
|
||||
return None
|
||||
return {"id": first["id"][:ID_TEXT], "kind": string_of(first.get("kind"))[:ID_TEXT], "waited_s": first["waited_s"], "reason": string_of(first.get("reason"))[:REASON_TEXT]}
|
||||
|
||||
|
||||
def hung_ids(rows: list[dict]) -> list[str]:
|
||||
return [row["id"][:ID_TEXT] for row in rows if row.get("status") == "active" and isinstance(row.get("id"), str) and HUNG in string_of(row.get("reason"))]
|
||||
|
||||
|
||||
def queue_view(council: Path, script: Path, run: Callable[[list[str]], str | None]) -> dict:
|
||||
"""Returns:
|
||||
{head, hung} of one `queue.py list --json` run of script through run
|
||||
with AGENTS_COUNCIL_ROOT set to council, head as head_of() gives it,
|
||||
hung as hung_ids(), each left out without one; {} when the run fails
|
||||
or prints no JSON list.
|
||||
"""
|
||||
rows = queue_rows(run(["env", f"AGENTS_COUNCIL_ROOT={council}", sys.executable, "-I", "-B", str(script), *QUEUE_ARGS]))
|
||||
if rows is None:
|
||||
return {}
|
||||
head, hung = head_of(rows), hung_ids(rows)
|
||||
return {**({"head": head} if head else {}), **({"hung": hung} if hung else {})}
|
||||
|
||||
|
||||
def queue_state(council: Path, script: Path, run: Callable[[list[str]], str | None]) -> dict:
|
||||
return {**queue(council), **queue_view(council, script, run)}
|
||||
|
||||
|
||||
def integers(value: object, size: int) -> bool:
|
||||
return isinstance(value, list) and len(value) == size and all(isinstance(item, int) and not isinstance(item, bool) for item in value)
|
||||
|
||||
@@ -306,10 +368,10 @@ def swap_out_since(proc: Path, state: Path, t: int) -> float | None:
|
||||
replace(state / SWAPPED, json.dumps([t, pages]))
|
||||
if not integers(stored, 2) or not t - BUCKET <= stored[0] < t or stored[1] > pages:
|
||||
return None
|
||||
return round((pages - stored[1]) * PAGE_BYTES / MB * 60 / (t - stored[0]), 1)
|
||||
return round((pages - stored[1]) * PAGE_BYTES / MEGABYTE * 60 / (t - stored[0]), 1)
|
||||
|
||||
|
||||
def sample(proc: Path, sys_root: Path, council: Path, run: Callable[[list[str]], str | None], state: Path) -> dict:
|
||||
def sample(proc: Path, sys_root: Path, queued: Callable[[], dict], run: Callable[[list[str]], str | None], state: Path) -> dict:
|
||||
t = int(time.time())
|
||||
ram, swap = memory(parse_meminfo(read_text(proc / "meminfo")))
|
||||
pressure = read_text(proc / "pressure" / "memory")
|
||||
@@ -321,7 +383,7 @@ def sample(proc: Path, sys_root: Path, council: Path, run: Callable[[list[str]],
|
||||
"swap": swap,
|
||||
"load": parse_loadavg(read_text(proc / "loadavg")),
|
||||
"gpus": gpus(sys_root, run),
|
||||
"queue": queue(council),
|
||||
"queue": queued(),
|
||||
"psi_some": psi_avg10(pressure, "some"),
|
||||
"psi_full": psi_avg10(pressure, "full"),
|
||||
"swap_out_mb_min": swap_out_since(proc, state, t),
|
||||
@@ -381,9 +443,26 @@ def disk_means(rows: list[dict]) -> list[dict]:
|
||||
return [{"mount": mount, "used": whole(means(disks, "used")), "total": whole(means(disks, "total"))} for mount, disks in grouped(listed(rows, "disks"), "mount").items()]
|
||||
|
||||
|
||||
def queue_marks(queues: list[dict]) -> dict:
|
||||
"""Returns:
|
||||
{head, hung} of a bucket's queue entries: the head of the last entry
|
||||
that carries one and the hung ids of every entry, each once in the
|
||||
order first seen; each left out without one.
|
||||
"""
|
||||
heads = [entry["head"] for entry in queues if isinstance(entry.get("head"), dict)]
|
||||
lists = [entry["hung"] for entry in queues if isinstance(entry.get("hung"), list)]
|
||||
hung = list(dict.fromkeys(item for found in lists for item in found if isinstance(item, str)))
|
||||
return {**({"head": heads[-1]} if heads else {}), **({"hung": hung} if hung else {})}
|
||||
|
||||
|
||||
def queue_mean(rows: list[dict]) -> dict:
|
||||
"""Returns:
|
||||
The weighted means of waiting and active with queue_marks() of the
|
||||
bucket.
|
||||
"""
|
||||
queues = [(weight(row), row["queue"]) for row in rows if isinstance(row.get("queue"), dict)]
|
||||
return {key: average(means(queues, key), 2) for key in ("waiting", "active")}
|
||||
found = {key: average(means(queues, key), 2) for key in ("waiting", "active")}
|
||||
return {**found, **queue_marks([entry for _, entry in queues])}
|
||||
|
||||
|
||||
def mean_row(start: int, width: int, rows: list[dict]) -> dict:
|
||||
@@ -732,11 +811,12 @@ def main() -> int:
|
||||
sub.add_argument("--council", type=Path, required=True)
|
||||
sampling.add_argument("--proc", type=Path, required=True)
|
||||
sampling.add_argument("--sys", type=Path, required=True)
|
||||
sampling.add_argument("--queue", type=Path, required=True)
|
||||
counting.add_argument("--transcripts", type=Path, required=True)
|
||||
args = parser.parse_args()
|
||||
args.state.mkdir(parents=True, exist_ok=True)
|
||||
if args.command == "sample":
|
||||
row = sample(args.proc, args.sys, args.council, command, args.state)
|
||||
row = sample(args.proc, args.sys, functools.partial(queue_state, args.council, args.queue, command), command, args.state)
|
||||
record(args.state, row, row["t"])
|
||||
else:
|
||||
count_tokens(args.transcripts, args.council, args.state, time.time(), BUDGET)
|
||||
|
||||
@@ -5,7 +5,7 @@ Description=Agent Orchestrator resources: disks, CPU, RAM, swap, load, GPU, the
|
||||
Type=oneshot
|
||||
Environment=PATH=/usr/bin:/bin
|
||||
EnvironmentFile=%h/.local/share/kvb-orchestrator/.env
|
||||
ExecStart=/usr/bin/env python3 %h/.local/share/kvb-orchestrator/client/resources.py sample --state ${KVB_ORCHESTRATOR_KEPT}/resources --council ${KVB_ORCHESTRATOR_COUNCIL} --proc /proc --sys /sys
|
||||
ExecStart=/usr/bin/env python3 %h/.local/share/kvb-orchestrator/client/resources.py sample --state ${KVB_ORCHESTRATOR_KEPT}/resources --council ${KVB_ORCHESTRATOR_COUNCIL} --proc /proc --sys /sys --queue ${KVB_ORCHESTRATOR_SKILLS}/kvb-org-queue/scripts/queue.py
|
||||
ExecStart=/usr/bin/env python3 %h/.local/share/kvb-orchestrator/client/resources.py tokens --state ${KVB_ORCHESTRATOR_KEPT}/resources --council ${KVB_ORCHESTRATOR_COUNCIL} --transcripts ${KVB_ORCHESTRATOR_PROJECTS}
|
||||
Nice=10
|
||||
IOSchedulingClass=idle
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
const RESOURCE = {left: 46, right: 10, wide: 50, top: 6, bottom: 6, axis: 18, poll: 5000, stale: 60, tones: 6, glyph: 6.5, shown: 100};
|
||||
const RESOURCE = {left: 46, right: 10, wide: 50, top: 6, bottom: 6, axis: 18, poll: 5000, stale: 60, tones: 6, glyph: 6.5, shown: 100, lane: 13};
|
||||
const RESOURCE_PANELS = [["hardware", "bi-cpu", "Hardware: disks, CPU, RAM, swap, GPU and VRAM"], ["tokens", "bi-coin", "Tokens per agent"], ["combined", "bi-layers", "Hardware, tokens and burnup"]];
|
||||
const RESOURCE_ZONES = {idle: "Idle: below 30 %", saturated: "Saturated: above 90 %"};
|
||||
const RESOURCE_MARKS = {
|
||||
wait: ["#bi-hourglass-split", (mark) => `${mark.peak} jobs waited while CPU and RAM stayed under 50 %`],
|
||||
asleep: ["#bi-moon", (mark) => `${mark.name} asleep`],
|
||||
unknown: ["#bi-question-circle", (mark) => `${mark.name} unknown: no reading`],
|
||||
wait: ["#bi-hourglass-split", (mark) => `Idle waiting: ${mark.peak} jobs waited while CPU and RAM stayed under 50 %`, 0],
|
||||
blocked: ["#bi-sign-stop", (mark) => revealed(`${mark.head} waited ${Math.round(mark.peak / 60)} min: ${mark.reason}`), 1],
|
||||
hung: ["#bi-pause-circle", (mark) => revealed(`suspect hung: ${mark.hung.join(", ")}`), 2],
|
||||
asleep: ["#bi-moon", (mark) => `${mark.name} asleep`, 0],
|
||||
unknown: ["#bi-question-circle", (mark) => `${mark.name} unknown: no reading`, 0],
|
||||
};
|
||||
const RESOURCE_BURN = {done: "Done", scope: "Scope"};
|
||||
const resourceView = {data: null, dom: null, busy: false, key: "", at: 0, timer: 0, series: {}};
|
||||
@@ -130,12 +132,38 @@
|
||||
if (right <= left) {
|
||||
continue;
|
||||
}
|
||||
const [href, words] = RESOURCE_MARKS[mark.kind];
|
||||
frame.svg.append(s("rect", {class: `res-mark ${mark.kind}`, "data-from": mark.from, "data-to": mark.to, "data-peak": mark.peak, x: fixed(left), width: fixed(Math.max(right - left, 2)), y: frame.top, height: fixed(frame.bottom - frame.top)}, s("title", {}, words(mark))));
|
||||
frame.svg.append(s("use", {class: `res-icon ${mark.kind}`, href, x: fixed(left + 2), y: frame.top + 2, width: 11, height: 11}));
|
||||
const [href, words, lane] = RESOURCE_MARKS[mark.kind];
|
||||
const press = (event) => {
|
||||
if (event.key === "Enter" || event.key === " ") {
|
||||
event.preventDefault();
|
||||
resourceQueueSheet(mark);
|
||||
}
|
||||
};
|
||||
const open = mark.steps ? {role: "button", tabindex: 0, "aria-label": words(mark), on: {click: () => resourceQueueSheet(mark), keydown: press}} : {};
|
||||
frame.svg.append(s("rect", {class: `res-mark ${mark.kind}`, "data-from": mark.from, "data-to": mark.to, "data-peak": mark.peak, x: fixed(left), width: fixed(Math.max(right - left, 2)), y: frame.top, height: fixed(frame.bottom - frame.top), ...open}, s("title", {}, words(mark))));
|
||||
frame.svg.append(s("use", {class: `res-icon ${mark.kind}`, href, x: fixed(left + 2), y: frame.top + 2 + lane * RESOURCE.lane, width: 11, height: 11}));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mark - a blocked or hung mark: {kind, from, to, peak, steps, hung} and for blocked head.
|
||||
*/
|
||||
function resourceQueueSheet(mark) {
|
||||
const time = (t) => absolute.format(stampOf(t));
|
||||
const title = mark.kind === "blocked" ? `${mark.head} waited ${Math.round(mark.peak / 60)} min` : `Suspect hung: ${mark.hung.join(", ")}`;
|
||||
const steps = mark.steps.map((step) => h("li", {"data-head": step.id, "data-from": step.from, "data-to": step.to},
|
||||
h("div", {class: "row"}, h("code", {}, revealed(step.id)), h("span", {class: "muted"}, `${time(step.from)} to ${time(step.to)}`)),
|
||||
h("p", {class: "text"}, revealed(step.reason === "" ? "no reason given" : step.reason))));
|
||||
const hung = mark.hung.map((id) => h("li", {"data-hung": id}, h("code", {}, revealed(id))));
|
||||
openSheet(title, [
|
||||
h("p", {class: "muted"}, `${time(mark.from)} to ${time(mark.to)}`),
|
||||
h("h3", {}, "Queue head", counter(steps.length)),
|
||||
steps.length ? h("ul", {class: "mini"}, steps) : h("p", {class: "muted"}, "No job waited at the head of the queue."),
|
||||
h("h3", {}, "Suspect hung", counter(hung.length)),
|
||||
hung.length ? h("ul", {class: "mini"}, hung) : h("p", {class: "muted"}, "No active job was suspect hung."),
|
||||
], false);
|
||||
}
|
||||
|
||||
function resourceLines(frame, y, list) {
|
||||
for (const line of list) {
|
||||
for (const part of Resources.segments(line.points)) {
|
||||
@@ -311,6 +339,8 @@
|
||||
burn: view.combined ? burnSeries(span) : [],
|
||||
marks: [
|
||||
...Resources.waits(data.samples).map((mark) => ({...mark, kind: "wait"})),
|
||||
...Resources.blocked(data.samples).map((mark) => ({...mark, kind: "blocked"})),
|
||||
...Resources.hung(data.samples).map((mark) => ({...mark, kind: "hung"})),
|
||||
...["asleep", "unknown"].flatMap((kind) => Resources[kind](data.samples).flatMap((gpu) => gpu.spans.map((mark) => ({...mark, kind, name: gpu.name})))),
|
||||
],
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@ const Resources = (() => {
|
||||
const IDLE = 30;
|
||||
const SATURATED = 90;
|
||||
const CALM = 50;
|
||||
const BLOCKED = 600;
|
||||
const GAP = 1800;
|
||||
const STEP = 60;
|
||||
const HOUR = 3600;
|
||||
@@ -98,6 +99,73 @@ const Resources = (() => {
|
||||
return spans(samples, (row) => waiting(row) > 0 && finite(row.cpu) && finite(row.ram) && row.cpu < CALM && row.ram < CALM, waiting);
|
||||
}
|
||||
|
||||
function headOf(row) {
|
||||
const head = row.queue && row.queue.head;
|
||||
if (!head || typeof head !== "object" || typeof head.id !== "string" || !finite(head.waited_s)) {
|
||||
return null;
|
||||
}
|
||||
return {id: head.id, waited: head.waited_s, reason: typeof head.reason === "string" ? head.reason : ""};
|
||||
}
|
||||
|
||||
const hungOf = (row) => (row.queue && Array.isArray(row.queue.hung) ? row.queue.hung.filter((id) => typeof id === "string") : []);
|
||||
|
||||
function headSteps(rows) {
|
||||
const found = [];
|
||||
for (const row of rows) {
|
||||
const head = headOf(row);
|
||||
if (!head) {
|
||||
continue;
|
||||
}
|
||||
const last = found[found.length - 1];
|
||||
if (last && last.id === head.id && last.reason === head.reason) {
|
||||
last.to = row.t;
|
||||
} else {
|
||||
found.push({id: head.id, reason: head.reason, from: row.t, to: row.t});
|
||||
}
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param samples - sampler rows.
|
||||
* @param test - whether a row belongs to a span.
|
||||
* @param value - the number of a row its span's peak is the largest of.
|
||||
* @param more - the extra keys of a span from the rows in it.
|
||||
* @returns spans() of test and value, each with more() of its rows, steps (per run of one head with one reason
|
||||
* its id, reason and first and last row time) and hung, every id suspect hung in it, once.
|
||||
*/
|
||||
function queueSpans(samples, test, value, more) {
|
||||
const rows = timed(samples).filter(test);
|
||||
return spans(samples, test, value).map((span) => {
|
||||
const inside = rows.filter((row) => row.t === span.from || (row.t > span.from && row.t < span.to));
|
||||
return {...span, ...more(inside), steps: headSteps(inside), hung: [...new Set(inside.flatMap(hungOf))]};
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param samples - sampler rows.
|
||||
* @returns queueSpans() where the queue head had waited at least BLOCKED seconds, peak the longest wait in
|
||||
* seconds, head and reason those of the span's last row.
|
||||
*/
|
||||
function blocked(samples) {
|
||||
const waited = (row) => {
|
||||
const head = headOf(row);
|
||||
return head === null ? 0 : head.waited;
|
||||
};
|
||||
return queueSpans(samples, (row) => waited(row) >= BLOCKED, waited, (inside) => {
|
||||
const last = headOf(inside[inside.length - 1]);
|
||||
return {head: last.id, reason: last.reason};
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param samples - sampler rows.
|
||||
* @returns queueSpans() where the queue listed an active job as suspect hung, peak the most such jobs at once.
|
||||
*/
|
||||
function hung(samples) {
|
||||
return queueSpans(samples, (row) => hungOf(row).length > 0, (row) => hungOf(row).length, () => ({}));
|
||||
}
|
||||
|
||||
function gpuSpans(samples, test) {
|
||||
const names = [...new Set(timed(samples).flatMap((row) => listOf(row, "gpus").filter(test).map((gpu) => String(gpu.name))))];
|
||||
return names.map((name) => ({name, spans: spans(samples, (row) => listOf(row, "gpus").some((gpu) => String(gpu.name) === name && test(gpu)), () => 1)}));
|
||||
@@ -190,7 +258,7 @@ const Resources = (() => {
|
||||
return unit ? `${(value / unit[0]).toFixed(1)}${unit[1]}` : String(Math.round(value));
|
||||
}
|
||||
|
||||
return {IDLE, SATURATED, CALM, GAP, HOUR, COUNTS, ZONES, lines, hardware, segments, spans, waits, asleep, unknown, stack, accumulate, burnup, compact};
|
||||
return {IDLE, SATURATED, CALM, BLOCKED, GAP, HOUR, COUNTS, ZONES, lines, hardware, segments, spans, waits, blocked, hung, asleep, unknown, stack, accumulate, burnup, compact};
|
||||
})();
|
||||
if (typeof module === "object" && module.exports) {
|
||||
module.exports = Resources;
|
||||
|
||||
@@ -16,9 +16,13 @@ svg .res-sum { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: r
|
||||
svg .res-burn { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linejoin: round; }
|
||||
svg .res-burn.k-scope { stroke-dasharray: 7 4; }
|
||||
svg .res-mark.wait { fill: var(--warn-soft); stroke: var(--warn); stroke-dasharray: 3 3; }
|
||||
svg .res-mark.blocked { fill: var(--bad-soft); stroke: var(--bad); cursor: pointer; }
|
||||
svg .res-mark.hung { fill: var(--violet-soft); stroke: var(--violet); stroke-dasharray: 1 3; cursor: pointer; }
|
||||
svg .res-mark.asleep { fill: var(--neutral-soft); }
|
||||
svg .res-mark.unknown { fill: var(--neutral-soft); stroke: var(--muted); stroke-dasharray: 2 3; }
|
||||
svg .res-icon.wait { fill: var(--warn); }
|
||||
svg .res-icon.blocked { fill: var(--bad); pointer-events: none; }
|
||||
svg .res-icon.hung { fill: var(--violet); pointer-events: none; }
|
||||
svg .res-icon.asleep, svg .res-icon.unknown { fill: var(--muted); }
|
||||
svg .res-bar { fill: var(--c); }
|
||||
svg .res-bar.faint { opacity: 0.35; }
|
||||
|
||||
Reference in new issue
Block a user