Move memory and time limit to compiler settings

parent 6da02617
...@@ -78,6 +78,14 @@ const TaskSchema = new mongoose.Schema({ ...@@ -78,6 +78,14 @@ const TaskSchema = new mongoose.Schema({
compileFile: { compileFile: {
type: mongoose.Schema.Types.ObjectId type: mongoose.Schema.Types.ObjectId
}, },
cpuTimeLimit: {
type: Number,
default: 2
},
memoryLimit: {
type: String,
default: '1M'
},
arguments: { arguments: {
type: String, type: String,
required: true required: true
...@@ -88,14 +96,6 @@ const TaskSchema = new mongoose.Schema({ ...@@ -88,14 +96,6 @@ const TaskSchema = new mongoose.Schema({
}, },
default: {} default: {}
}, },
cpuTimeLimit: {
type: Number,
default: 2
},
memoryLimit: {
type: String,
default: '64K'
},
testingType: { testingType: {
type: String, type: String,
default: defines.TESTER_TYPE.TEXT_COMPARE default: defines.TESTER_TYPE.TEXT_COMPARE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment