Skip to content
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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Conversation

ariannazafarana
Copy link
Collaborator

No description provided.

Copy link
Contributor

@galales galales left a 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

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))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.doOnError(ex -> log.error("Find an error {}",ex))
.doOnError(ex -> log.error("Error on signal cleanup {}", ex))

Copy link
Collaborator

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
Copy link
Contributor

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

Copy link
Collaborator

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

Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants