Skip to content

Commit f6afda3

Browse files
committed
docs(dashboard-agent): say what the queue path encoding is for
1 parent e2704ea commit f6afda3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal-packages/dashboard-agent/src/tool-api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ export function buildApiTools(args: {
320320
execute: async ({ queue, type, period }) => {
321321
const sp = new URLSearchParams({ type: type ?? "task" });
322322
if (period) sp.append("period", period);
323-
// Double-encoded: a task queue's ClickHouse name carries a `task/` prefix, and
324-
// the route un-escapes `%2F` back to `/` itself.
323+
// Queue names may contain `/`; encode them as a single path segment.
325324
const result = await envApiGet(
326325
`/api/v1/queues/${encodeURIComponent(queue)}/metrics?${sp.toString()}`
327326
);

0 commit comments

Comments
 (0)