feat(shipping-notice): 增加 RPA Worker 心跳上报与状态查询功能
This commit is contained in:
1 parent
c3f05ba96b
commit
5a147c4d85
49 files changed
+4032
-1500
No files matched your search
@@ -156,4 +156,42 @@ export const listAdminScheduleRuns = (taskId: number, params?: { status?: string
|
||||
|
||||
export const adminRunExcelUrl = (runId: number) => `/api/admin/schedule-runs/${runId}/excel`;
|
||||
|
||||
export const adminRunInventoryRawZipUrl = (runId: number) =>
|
||||
`/api/admin/schedule-runs/${runId}/inventory-raw-zip`;
|
||||
|
||||
export interface RpaWorkerHeartbeatWorker {
|
||||
worker_id?: string;
|
||||
hostname?: string;
|
||||
environment?: string;
|
||||
status?: string;
|
||||
capabilities?: string[];
|
||||
trigger_dir?: string;
|
||||
drop_dir?: string;
|
||||
shared_scope_id?: string;
|
||||
version?: string;
|
||||
online?: boolean;
|
||||
eligible?: boolean;
|
||||
ineligible_reasons?: string[];
|
||||
age_seconds?: number | null;
|
||||
received_at?: string;
|
||||
timestamp?: string;
|
||||
}
|
||||
|
||||
export interface RpaWorkerHeartbeatSummary {
|
||||
ready: boolean;
|
||||
message: string;
|
||||
detail_message?: string;
|
||||
checked_at: string;
|
||||
heartbeat_ttl_seconds: number;
|
||||
backend_environment: string;
|
||||
shared_scope_id?: string;
|
||||
shared_sentinel_name?: string;
|
||||
trigger_dir: string;
|
||||
reasons: string[];
|
||||
workers: RpaWorkerHeartbeatWorker[];
|
||||
}
|
||||
|
||||
export const getAdminRpaWorkersStatus = () =>
|
||||
getJson<RpaWorkerHeartbeatSummary>('/api/admin/rpa-workers/status');
|
||||
|
||||
export type { DifyExecutionSnapshot, ScheduleRun, ScheduleTask, StepLog, TestScheduleRunResult, TestScheduleSqlResult };
|
||||
Reference in new issue
Block a user