From c30ef8e6d421de7b8991d0748b8ccdd05090b4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=A1=8D=E5=BF=97523370910113?= Date: Sun, 15 Sep 2024 22:15:54 +0800 Subject: [PATCH] Update doc: conf.toml detail --- doc%3A-conf.toml-detail.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/doc%3A-conf.toml-detail.md b/doc%3A-conf.toml-detail.md index 487d022..518d640 100644 --- a/doc%3A-conf.toml-detail.md +++ b/doc%3A-conf.toml-detail.md @@ -17,4 +17,37 @@ In the file, there will be many stages stating each parser to run. To be more sp - healthcheck - keyword - resultstatus +``` + +During the `run-joj` process, we will have **several stages** where we will apply different parsers to the code. Those **stages and parsers** are what the users should know how to set. +Here are the template code for stages and parsers: +``` +[[stages]] +name = "" # stage name here +[stages.executor] +name = "sandbox" +[stages.executor.with.default] +args = [] # giving args here +env = ["PATH=/usr/bin:/bin:/usr/local/bin"] +cpuLimit = 10_000_000_000 +memoryLimit = 104_857_600 +procLimit = 50 +copyInCwd = true +copyOut = ["stdout", "stderr"] +[stages.executor.with.default.copyIn.healthcheck] +src = "/usr/local/bin/healthcheck" +copyOut = ["stdout", "stderr"] +[stages.executor.with.default.stdin] +content = "" +[stages.executor.with.default.stdout] +name = "stdout" +max = 4_096 +[stages.executor.with.default.stderr] +name = "stderr" +max = 4_096 +[stages.parser] +name = "healthcheck" +[stages.parser.with] +score = 0 +comment = " + comment from toml conf" ``` \ No newline at end of file