mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-26 21:58:45 +00:00
chore: trim multi-line comments to single lines
Tightens a handful of two-line comments left over from earlier iterations (Health tab / failed-deployment classification) down to one line each, no behavior change.
This commit is contained in:
@@ -944,8 +944,7 @@ export const findAllDeploymentsCentralized = async (
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// Kept separate from getApplicationIdsInOrg/getComposeIdsInOrg above to avoid
|
// Kept separate from getApplicationIdsInOrg/getComposeIdsInOrg to avoid touching that path.
|
||||||
// touching that existing code path; adds projectId/environmentId filtering.
|
|
||||||
type FailedDeploymentIdFilters = { projectId?: string; environmentId?: string };
|
type FailedDeploymentIdFilters = { projectId?: string; environmentId?: string };
|
||||||
|
|
||||||
async function getApplicationIdsForFailedDeployments(
|
async function getApplicationIdsForFailedDeployments(
|
||||||
@@ -1038,8 +1037,7 @@ async function mapWithConcurrency<T, R>(
|
|||||||
|
|
||||||
export type FailedDeploymentFilters = z.infer<typeof apiFindFailedDeployments>;
|
export type FailedDeploymentFilters = z.infer<typeof apiFindFailedDeployments>;
|
||||||
|
|
||||||
// Same org-wide scope as findAllDeploymentsCentralized, narrowed to failed
|
// Same org-wide scope as findAllDeploymentsCentralized, narrowed to failed deployments.
|
||||||
// deployments, each tagged with a classifyFailure() guess from its log tail.
|
|
||||||
export const findFailedDeploymentsCentralized = async (
|
export const findFailedDeploymentsCentralized = async (
|
||||||
orgId: string,
|
orgId: string,
|
||||||
accessedServices: string[] | null,
|
accessedServices: string[] | null,
|
||||||
@@ -1063,8 +1061,7 @@ export const findFailedDeploymentsCentralized = async (
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// createdAt is stored as text via toISOString(); normalize the filters the
|
// createdAt is stored as text via toISOString(); normalize filters the same way.
|
||||||
// same way so the string range comparison below stays valid.
|
|
||||||
const dateFrom = filters.dateFrom
|
const dateFrom = filters.dateFrom
|
||||||
? new Date(filters.dateFrom).toISOString()
|
? new Date(filters.dateFrom).toISOString()
|
||||||
: undefined;
|
: undefined;
|
||||||
@@ -1093,8 +1090,7 @@ export const findFailedDeploymentsCentralized = async (
|
|||||||
limit: 200,
|
limit: 200,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Skip further attempts to a server once it's timed out once, so a batch
|
// Skip a server again once it's timed out, so one dead host doesn't cost N SSH timeouts.
|
||||||
// of failures on one unreachable host doesn't pay the SSH timeout N times.
|
|
||||||
const deadServers = new Set<string>();
|
const deadServers = new Set<string>();
|
||||||
return mapWithConcurrency(
|
return mapWithConcurrency(
|
||||||
failed,
|
failed,
|
||||||
|
|||||||
@@ -219,8 +219,7 @@ const getNetworksIpUsage = async (
|
|||||||
return rows.sort((a, b) => (b.percentUsed ?? -1) - (a.percentUsed ?? -1));
|
return rows.sort((a, b) => (b.percentUsed ?? -1) - (a.percentUsed ?? -1));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Sums Application memoryReservation/cpuReservation (bytes/NanoCPUs, see
|
// Sums Application memoryReservation/cpuReservation; Compose has no such columns.
|
||||||
// calculateResources in utils/docker/utils.ts). Compose has no such columns.
|
|
||||||
export const getReservationSummary = async (
|
export const getReservationSummary = async (
|
||||||
orgId: string,
|
orgId: string,
|
||||||
serverId?: string,
|
serverId?: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user