Update doc: conf.toml detail
parent
daf84f5bc6
commit
c30ef8e6d4
|
@ -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"
|
||||
```
|
Loading…
Reference in New Issue
Block a user