Skip to content

Commit

Permalink
Keep logs for 6 months (#505)
Browse files Browse the repository at this point in the history
Also remove the obsolete 'changeHorizon' setting.
  • Loading branch information
zware authored Jul 17, 2024
1 parent 8fba9f8 commit 7f54581
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,14 @@ c = BuildmasterConfig = {}

c["db_url"] = str(settings.db_url)

# horizons
c["changeHorizon"] = 300

# configure a janitor which will delete all logs older than one month,
# configure a janitor which will delete all logs older than 6 months,
# and will run on sundays at noon
c["configurators"] = [
util.JanitorConfigurator(logHorizon=timedelta(weeks=4), hour=12, dayOfWeek=6)
util.JanitorConfigurator(
logHorizon=timedelta(days=180),
hour=12,
dayOfWeek=6,
)
]

# workers are set up in workers.py
Expand Down

0 comments on commit 7f54581

Please sign in to comment.