Move memory and time limit to compiler settings

parent 6da02617
......@@ -78,6 +78,14 @@ const TaskSchema = new mongoose.Schema({
compileFile: {
type: mongoose.Schema.Types.ObjectId
},
cpuTimeLimit: {
type: Number,
default: 2
},
memoryLimit: {
type: String,
default: '1M'
},
arguments: {
type: String,
required: true
......@@ -88,14 +96,6 @@ const TaskSchema = new mongoose.Schema({
},
default: {}
},
cpuTimeLimit: {
type: Number,
default: 2
},
memoryLimit: {
type: String,
default: '64K'
},
testingType: {
type: String,
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