Skip to content
Snippets Groups Projects

Worker timeout

Files

@@ -233,6 +233,7 @@ public class AssignmentController extends ControllerBase {
}
// Fill in the assignment
final var timeout = (Integer) req.getOrDefault("timeout", 0);
final var stat = (Collection<Map<String, Object>>)
req.getOrDefault("static", Collections.emptyList());
@@ -242,6 +243,7 @@ public class AssignmentController extends ControllerBase {
);
assignment.setName(name);
assignment.setTimeout(timeout);
assignment.setAllowedLanguages(Collections.singleton(lang));
assignment.setMetricSettings(stat.stream().map(o -> {
final var passingScriptTests = this.passingScriptTestCasesParser.parseTests(
Loading