-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cleanup of temporary workspaces by schreduler instead of startup #14561
Conversation
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
ci-test |
E2E tests of Eclipse Che Multiuser on OCP has been successful:
|
...-workspace/src/main/java/org/eclipse/che/api/workspace/server/TemporaryWorkspaceRemover.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Max Shaposhnik <[email protected]>
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
@@ -43,7 +44,10 @@ public TemporaryWorkspaceRemover(WorkspaceDao workspaceDao, WorkspaceRuntimes ru | |||
this.runtimes = runtimes; | |||
} | |||
|
|||
@PostConstruct | |||
@ScheduleDelay( | |||
initialDelayParameterName = "che.workspace.cleanup_temporary_stopped_period_min", |
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.
Please use dedicated parameter for that che.workspace.cleanup_temporary_stopped_period_min -> che.workspace.cleanup_temporary_initial_delay_min
E2E tests of Eclipse Che Multiuser on OCP has been successful:
|
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
What does this PR do?
Moves cleanup of temporary workspaces to be run on schredule instead of startup time. This will prevent intergiry errors because of uncontrolled
@PostConstruct
order and (optionally) speed up the startup.What issues does this PR fix or reference?
#14525
Release Notes
N/A
Docs PR
N/A