-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Initial history clean process #2
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
datetime should be in UTC instead of local date time
src/main/java/it/pagopa/interop/signalhub/history/cleanup/repository/SignalRepository.java
Show resolved
Hide resolved
LocalDate pastDate = LocalDate.now().minus(Long.parseLong(appConfig.getDelayDays()), ChronoUnit.DAYS); | ||
signalRepository.deleteByDate(pastDate) | ||
.doOnSuccess(x -> log.info("clean complete with success")) | ||
.doOnError(ex -> log.error("Find an error {}",ex)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.doOnError(ex -> log.error("Find an error {}",ex)) | |
.doOnError(ex -> log.error("Error on signal cleanup {}", ex)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixato
spring.r2dbc.pool.enabled=true | ||
spring.data.r2dbc.repositories.enabled=true | ||
|
||
pdnd.history-cleanup.delay-days=30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delay days configuration should be injected as env variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abbiamo provveduto ad iniettare la variabile di ambiente sulla parte infrastrutturale
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implemented on infra with commit ef8ca8e
No description provided.