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

Add memory and cpu limits to exercises #578

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

Redande
Copy link
Collaborator

@Redande Redande commented Jan 12, 2024

Add memory_limit_gb and cpu_limit to exercises, default values are 1 for both (1GB of memory and 1 cpu thread). These are used on sandbox when running tests for the exercise. Both values can be customized through .tmcproject.yml through fields memory_gb and cpus.

app/models/remote_sandbox.rb Outdated Show resolved Hide resolved
Copy link

codeclimate bot commented Jan 12, 2024

Code Climate has analyzed commit b02b4ec and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2

View more on Code Climate.

@Redande Redande merged commit 81620f5 into master Jan 12, 2024
9 of 10 checks passed
@Redande Redande deleted the add-memory-and-cpu-limits-to-exercises branch January 12, 2024 14:03
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.

2 participants