From: Brendan Hansen Date: Fri, 15 Nov 2019 04:44:56 +0000 (-0600) Subject: execution error returning correct error fixed X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=dfe42c85909db4df229d266a18f3364b5cc39f61;p=codebox.git execution error returning correct error fixed --- 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()