aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-07-05 18:43:23 +0200
committerLouis Burda <quent.burda@gmail.com>2021-07-05 18:43:23 +0200
commit28c2f2b0cca22d59eb5bf4b6e033b10927a37303 (patch)
tree6bc8a9070d1c5d7b501ae44946c2eea5b81170c0
parent16925b3643a510868325dbdfbbd199011ca156ab (diff)
downloadenowars5-service-stldoctor-28c2f2b0cca22d59eb5bf4b6e033b10927a37303.tar.gz
enowars5-service-stldoctor-28c2f2b0cca22d59eb5bf4b6e033b10927a37303.zip
change checker name to lowercase, only cleanup every 13 min since 11 round persistence at 60s per round
-rw-r--r--checker/.gitignore1
-rw-r--r--checker/src/checker.py2
-rwxr-xr-xservice/entrypoint.sh4
3 files changed, 4 insertions, 3 deletions
diff --git a/checker/.gitignore b/checker/.gitignore
index 2a62f4e..2ac7fc5 100644
--- a/checker/.gitignore
+++ b/checker/.gitignore
@@ -2,3 +2,4 @@ data/
venv/
.data/
fails
+.mypy_cache
diff --git a/checker/src/checker.py b/checker/src/checker.py
index 795aa69..c7975b9 100644
--- a/checker/src/checker.py
+++ b/checker/src/checker.py
@@ -54,7 +54,7 @@ solid test\xff
endsolid test\xff
"""
-checker = Enochecker("STLDoctor", 9090)
+checker = Enochecker("stldoctor", 9090)
app = lambda: checker.app
diff --git a/service/entrypoint.sh b/service/entrypoint.sh
index 94dbea1..614b251 100755
--- a/service/entrypoint.sh
+++ b/service/entrypoint.sh
@@ -1,11 +1,11 @@
-#!/bin/sh
+#!/bin/bash
mkdir -p "$RESULTDIR"
chown -R service:service "$RESULTDIR"
while [ 1 ]; do
/cleaner.sh
- sleep 400
+ sleep $((60*13)) # data persistence for atleast 11 rounds
done &
CMD="socat -T180 -s TCP-LISTEN:9000,nodelay,reuseaddr,fork EXEC:/service/build/stldoctor,raw,pty,echo=0,stderr"