feat(core): Add Job Summary to Worker response (#7360)

This commit is contained in:
Michael Auerswald
2023-10-06 17:52:27 +02:00
committed by GitHub
parent c8c14ca0af
commit b8608cee6d
8 changed files with 58 additions and 14 deletions

View File

@@ -1,3 +1,5 @@
import type { WorkerJobStatusSummary } from '../orchestration/worker/types';
export type RedisServiceCommand =
| 'getStatus'
| 'getId'
@@ -29,11 +31,12 @@ export type RedisServiceWorkerResponseObject = {
payload: {
workerId: string;
runningJobs: string[];
runningJobsSummary: WorkerJobStatusSummary[];
freeMem: number;
totalMem: number;
uptime: number;
loadAvg: number[];
cpus: string[];
cpus: string;
arch: string;
platform: NodeJS.Platform;
hostname: string;