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

Scheduler to clean old projects #10575

Open
pascalgrimaud opened this issue Aug 16, 2024 · 0 comments
Open

Scheduler to clean old projects #10575

pascalgrimaud opened this issue Aug 16, 2024 · 0 comments

Comments

@pascalgrimaud
Copy link
Member

pascalgrimaud commented Aug 16, 2024

See the current property: https://github.com/jhipster/jhipster-lite/blob/main/src/main/resources/config/application-cloud.yml#L1-L2

We should add new properties:

application:
  forced-project-folder: /tmp/jhlite
  clean-project-folder:
    older-in-hours: 24
    scheduler: 'xxxx'

So when scheduler is running, it will check all projects in /tmp/jhlite
If the project is older than the property (here 24h), it will be deleted

It is needed to clean old generated projects in cloud instance

important: this behavior should be disabled by default

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

No branches or pull requests

2 participants