Skip to content

Commit

Permalink
fixup! fixup! Add cleaning up action logs as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszraczylo committed Jun 12, 2024
1 parent e8b07d2 commit 9a7635b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ func enableHasuraEventCleaner() {
defer ticker.Stop()
cfg.Logger.Info("Event cleaner enabled", map[string]interface{}{"interval_in_days": cfg.HasuraEventCleaner.ClearOlderThan})

time.Sleep(60 * time.Second) // wait for everything to start and settle down
cfg.Logger.Info("Initial cleanup of old events", nil)
cleanEvents()

for {
select {
case <-ticker.C:
Expand Down

0 comments on commit 9a7635b

Please sign in to comment.