Skip to content

Commit

Permalink
Merge pull request #2245 from keboola/petr-hosek-PSGO-996
Browse files Browse the repository at this point in the history
Update ArchivedFileExpiration to 1 hour in metacleanup config
  • Loading branch information
hosekpeter authored Feb 18, 2025
2 parents 3245cd6 + 10ac943 commit 20c77fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/service/stream/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ storage:
# Expiration interval of a file that has not yet been imported. Validation rules: required,minDuration=1h,maxDuration=720h,gtefield=ArchivedFileExpiration
activeFileExpiration: 168h0m0s
# Expiration interval of a file that has already been imported. Validation rules: required,minDuration=15m,maxDuration=720h
archivedFileExpiration: 6h0m0s
archivedFileExpiration: 1h0m0s
diskCleanup:
# Enable local storage disks cleanup.
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/service/stream/storage/metacleanup/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ func NewConfig() Config {
Interval: 30 * time.Second,
Concurrency: 50,
ActiveFileExpiration: 7 * 24 * time.Hour, // 7 days
ArchivedFileExpiration: 6 * time.Hour,
ArchivedFileExpiration: 1 * time.Hour,
}
}

0 comments on commit 20c77fa

Please sign in to comment.