Skip to content

Commit 8f4592d

Browse files
committed
fix: change stale container cleanup to 2 hours
Changed max_age from 30 minutes to 120 minutes (2 hours) as requested by user.
1 parent 4b26cf4 commit 8f4592d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/challenge-orchestrator/src

crates/challenge-orchestrator/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,15 @@ impl ChallengeOrchestrator {
256256
///
257257
/// Called periodically to prevent Docker from accumulating orphaned containers.
258258
pub async fn cleanup_stale_task_containers(&self) -> anyhow::Result<CleanupResult> {
259-
// Clean up term-challenge task containers older than 30 minutes
259+
// Clean up term-challenge task containers older than 2 hours
260260
// Exclude:
261261
// - challenge-* (main challenge containers managed by orchestrator)
262262
// - platform-* (validator, watchtower)
263263
let result = self
264264
.docker
265265
.cleanup_stale_containers(
266266
"term-challenge-",
267-
30, // 30 minutes old
267+
120, // 2 hours old
268268
&["challenge-term-challenge", "platform-"],
269269
)
270270
.await?;

0 commit comments

Comments
 (0)