Fied build
Some checks failed
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled

This commit is contained in:
Kasra Bigdeli
2025-09-06 21:58:08 -07:00
parent b47bdddc66
commit e902762809

View File

@@ -20,7 +20,6 @@ interface IJobInfo {
export class OneClickDeploymentJobRegistry {
private static instance: OneClickDeploymentJobRegistry
private jobs: Map<string, IJobInfo> = new Map()
private cleanupInterval: NodeJS.Timeout | null = null
private constructor() {
this.startAutomaticCleanup()
@@ -135,7 +134,7 @@ export class OneClickDeploymentJobRegistry {
*/
private startAutomaticCleanup(): void {
// Clean up jobs older than 24 hours every 4 hours (4 * 60 * 60 * 1000 ms)
this.cleanupInterval = setInterval(
setInterval(
() => {
const removedCount = this.cleanupOldJobs(24)
if (removedCount > 0) {