Skip to content

Commit

Permalink
Bugfix: clear history files to free up disk space (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou9584 committed Jul 25, 2023
1 parent 4d9f54a commit 9731344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void scheduledCheckWebSocketConnection() {
agentWebSocketClient.reconnect();
}

@Scheduled(cron = "0 10 6 ? * MON")
@Scheduled(cron = "0 10 6 ? * *")
public void scheduleCleanBuildSource() {
logger.info("schedule clean build APK");
clearFile(appOptions.getTestPackageLocation());
Expand Down
4 changes: 2 additions & 2 deletions agent/src/main/resources/logback-common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!-- http://logback.qos.ch/codes.html#sat_missing_integer_token The %i conversion token is mandatory for size and time based archiving.
In case the %i token is missing, SizeAndTimeBasedFNATP attached to RollingFileAppender will detect the omission and will not start. -->
<fileNamePattern>./hydra/data/log/%d/hydra_lab.%d.%i.log</fileNamePattern>
<maxHistory>30</maxHistory>
<maxHistory>10</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
Expand All @@ -31,7 +31,7 @@
<File>./hydra/data/access_log/hydra_lab_current.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>./hydra/data/access_log/%d/hydra_lab.%d.%i.log</fileNamePattern>
<maxHistory>30</maxHistory>
<maxHistory>10</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
Expand Down

0 comments on commit 9731344

Please sign in to comment.