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

Use workspace limit idle timeout value in WorkspaceActivityManager #9395

Merged
merged 7 commits into from Apr 13, 2018

Conversation

mkuznyetsov
Copy link
Contributor

What does this PR do?

MultiUserWorkspaceActivityManager is now using accounts resources to retrieve workspaces idle timeouts.

"che.limits.workspace.idle.timeout" property is also used now as default value for timeout (for single & multi user Che)
Removed old "che.workspace.agent.dev.inactive_stop_timeout_ms" property.

What issues does this PR fix or reference?

#8951

Release Notes

Docs PR

@mkuznyetsov mkuznyetsov changed the title Che 8951 Use workspace limit idle timeout value in WorkspaceActivityManager Apr 12, 2018
@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/bug Outline of a bug - must adhere to the bug report template. labels Apr 12, 2018
@mkuznyetsov
Copy link
Contributor Author

ci-test

@codenvy-ci
Copy link

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:9395
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

<dependency>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-api-workspace-activity</artifactId>
<version>6.4.0-SNAPSHOT</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

remove version

*
* @author Mykhailo Kuznietsov
*/
@Singleton
Copy link
Contributor

Choose a reason for hiding this comment

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

test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

test added

}
}

protected long getIdleTimeout(String wsId) throws NotFoundException, ServerException {
return defaultTimeout;
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have a test for this class?

@mkuznyetsov mkuznyetsov self-assigned this Apr 13, 2018
@mkuznyetsov mkuznyetsov merged commit 013d485 into master Apr 13, 2018
@mkuznyetsov mkuznyetsov deleted the che-8951 branch April 13, 2018 14:11
@benoitf benoitf added this to the 6.4.0 milestone Apr 13, 2018
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants