Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run mist-cleanup more often - every 15min instead of 2h #1386

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading