Update cpu types

This commit is contained in:
Jordan Bradford
2024-11-14 11:49:54 -05:00
parent c0563ab573
commit 6531b6b7aa

View File

@@ -79,7 +79,23 @@ config_schema = {
"description": "User CPU and memory limits.",
"type": "object",
"additionalProperties": False,
"properties": {"memory": {"type": "string"}, "cpu": {"type": "integer"}},
"properties": {"memory": {"type": "string"}, "cpu": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"enum": ["None"]
}
]
}
},
},
"UserEnvironment": {
"type": "object",