mirror of
https://github.com/caprover/caprover
synced 2025-10-30 01:57:03 +00:00
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
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user