mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-24 13:05:51 +00:00
Run database cleanup on startup in addition to once a day
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
760b18dd2a
commit
5943d3117c
@ -84,6 +84,9 @@ module.exports = class ApplicationManager extends EventEmitter
|
||||
@logger.clearOutOfDateDBLogs(_.map(containers, 'Id'))
|
||||
# Once a day
|
||||
, 1000 * 60 * 60 * 24
|
||||
# But also run it in the background on startup
|
||||
@docker.listContainers(all: true).then (containers) =>
|
||||
@logger.clearOutOfDateDBLogs(_.map(containers, 'Id'))
|
||||
|
||||
@config.on 'change', (changedConfig) =>
|
||||
if changedConfig.appUpdatePollInterval
|
||||
|
Loading…
x
Reference in New Issue
Block a user