remove dead fields from WorkerSummary

This commit is contained in:
Alex Holliday committed 2026-06-22 09:53:50 -07:00
1 parent 09446c9fc1
commit 89c86a7628
2 files changed
+2 -16

No files matched your search

+1 -8
View File
@@ -137,23 +137,16 @@ export class DBQueueWorker implements IWorker {
private toSummary = (job: Job): WorkerJobSummary => ({
monitorId: job.refId ?? job.id,
monitorUrl: null, // Jobs don't have URL
monitorType: job.type,
monitorInterval: job.intervalMs,
monitorGeoInterval: null,
monitorActive: job.isActive,
active: job.isActive,
lockedBy: job.lockedBy,
lockedUntil: job.lockedUntil,
lockedAt: null, // no lockedAt
nextScheduledAt: job.nextScheduledAt,
runCount: job.runCount,
failCount: job.failCount,
failReason: job.lastFailReason,
lastRunAt: null, // not tracked
lastFinishedAt: job.lastFinishedAt,
lastRunTook: null, // not tracked
lastFailedAt: null, // not tracked
repeat: job.intervalMs,
});
// ********************
+1 -8
View File
@@ -34,23 +34,16 @@ export type WorkerMetrics = {
export type WorkerJobSummary = {
monitorId: string | number;
monitorUrl: string | null;
monitorType: string | null;
monitorInterval: number | null;
monitorGeoInterval: number | null;
monitorActive: boolean | null;
active: boolean;
lockedBy: string | null;
lockedUntil: number | null;
lockedAt: number | null;
nextScheduledAt: number;
runCount: number;
failCount: number;
failReason: string | null;
lastRunAt: number | null;
lastFinishedAt: number | null;
lastRunTook: number | null;
lastFailedAt: number | null;
repeat: number | null;
};
export type WorkerJobsPagination = {