From dfe42c85909db4df229d266a18f3364b5cc39f61 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 14 Nov 2019 22:44:56 -0600 Subject: [PATCH] execution error returning correct error fixed --- docs/todo | 3 +++ executer/app/executer.coffee | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/todo b/docs/todo index de7023f..f7964b9 100644 --- a/docs/todo +++ b/docs/todo @@ -23,6 +23,9 @@ X Shouldn't be much overhead, just removing all instances where searching for currently active competition * Guarantee there will be errors somewhere to find +[ ] Admin - Fix the way testcases are added and managed + * Don't know how atm, just make it better + [ ] Add shortcuts around the site * Problem description -> Problem submissions * Job result -> Problem description diff --git a/executer/app/executer.coffee b/executer/app/executer.coffee index 613f1a7..431e429 100644 --- a/executer/app/executer.coffee +++ b/executer/app/executer.coffee @@ -120,6 +120,7 @@ class Executer exec_file.delete_file() # General error yield { status: 10, data: { completed: completed, total: total_cases, run_times: run_times } } + return when 'TIME_LIMIT_EXCEEDED' exec_file.delete_file() -- 2.25.1