Skip to content

Commit

Permalink
Run mist-cleanup more often - every 15min instead of 2h
Browse files Browse the repository at this point in the history
  • Loading branch information
pwilczynskiclearcode authored Nov 4, 2024
1 parent e0887e0 commit 0166dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ func main() {
// Start cron style apps to run periodically
if cli.ShouldMistCleanup() {
app := "mist-cleanup.sh"
// schedule mist-cleanup every 2hrs with a timeout of 15min
mistCleanup, err := middleware.NewShell(2*60*60*time.Second, 15*60*time.Second, app)
// schedule mist-cleanup every 15min with a timeout of 15min
mistCleanup, err := middleware.NewShell(15*60*time.Second, 15*60*time.Second-10, app)
if err != nil {
glog.Info("Failed to shell out:", app, err)
}
Expand Down

0 comments on commit 0166dc6

Please sign in to comment.