diff --git a/messages/en.json b/messages/en.json
index be46a6a..7beb075 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -574,5 +574,7 @@
"contest_collaborators_remove_cancel": "Cancel",
"contest_collaborators_remove_success": "Collaborator removed successfully!",
"contest_collaborators_remove_error": "Failed to remove collaborator",
- "admin_contests_card_view_collaborators": "View Collaborators"
+ "admin_contests_card_view_collaborators": "View Collaborators",
+ "admin_dashboard_worker_id": "Worker {id}",
+ "admin_dashboard_worker_processing": "Processing:"
}
diff --git a/messages/pl.json b/messages/pl.json
index 1483dc8..33864af 100644
--- a/messages/pl.json
+++ b/messages/pl.json
@@ -574,5 +574,7 @@
"contest_collaborators_remove_cancel": "Anuluj",
"contest_collaborators_remove_success": "Współpracownik został usunięty pomyślnie!",
"contest_collaborators_remove_error": "Nie udało się usunąć współpracownika",
- "admin_contests_card_view_collaborators": "Zobacz Współpracowników"
+ "admin_contests_card_view_collaborators": "Zobacz Współpracowników",
+ "admin_dashboard_worker_id": "Worker {id}",
+ "admin_dashboard_worker_processing": "Przetwarzanie:"
}
diff --git a/src/lib/dto/worker.ts b/src/lib/dto/worker.ts
index 9476fb2..0984c1c 100644
--- a/src/lib/dto/worker.ts
+++ b/src/lib/dto/worker.ts
@@ -1,6 +1,17 @@
+export enum WorkerStatusType {
+ Idle = 'idle',
+ Busy = 'busy'
+}
+
+export interface WorkerStatusItem {
+ id: number;
+ status: WorkerStatusType;
+ processingMessageId?: string;
+}
+
export interface WorkerStatus {
busyWorkers: number;
statusTime: string;
totalWorkers: number;
- workerStatus: Record
{workerId}
-+ {m.admin_dashboard_worker_id({ id: worker.id })} +
- {workerState} - - {:else} - - {workerState} + {worker.status} +