mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 13:00:44 +08:00
Add collect stop, cutover nav prefetch/cache, and lane labels.
Let operators abort queued/running biz_state batches, speed cutover page switches, and show light/heavy collect lanes on monitor items. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
305822aa4f
commit
924f9bd2f7
16 changed files with 779 additions and 112 deletions
|
|
@ -1826,6 +1826,15 @@ export const bizStateDeleteTask = (taskId: string) =>
|
|||
export const bizStateCollectNow = (taskId: string) =>
|
||||
apiPost<{ ok: boolean }>(`/v1/biz-state/tasks/${encodeURIComponent(taskId)}/collect`, {});
|
||||
|
||||
export const bizStateCollectStop = (taskId: string) =>
|
||||
apiPost<{
|
||||
ok: boolean;
|
||||
stopped?: boolean;
|
||||
reason?: string;
|
||||
cancelled_batches?: string[];
|
||||
signaled_batches?: string[];
|
||||
}>(`/v1/biz-state/tasks/${encodeURIComponent(taskId)}/collect/stop`, {});
|
||||
|
||||
export const bizStateListBatches = (taskId: string, limit = 50) =>
|
||||
apiGet<{ items: Record<string, unknown>[] }>(
|
||||
`/v1/biz-state/tasks/${encodeURIComponent(taskId)}/batches?limit=${limit}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue