Create first version of heuristics service with the same logic as old ender

This commit is contained in:
Alexander Zavorotynskiy 2022-05-06 16:12:06 +02:00
parent 2b3728d8da
commit 967034a89c
3 changed files with 3 additions and 6 deletions

View file

@ -23,7 +23,7 @@ function build_service() {
image="$1"
echo "BUILDING $image"
case "$image" in
http | db | ender)
http | db | ender | heuristics)
echo build http
docker build -t ${DOCKER_REPO:-'local'}/$image:${git_sha1} --build-arg SERVICE_NAME=$image -f ./cmd/Dockerfile .
[[ $PUSH_IMAGE -eq 1 ]] && {

View file

@ -36,12 +36,12 @@ func main() {
false,
)
tick := time.Tick(intervals.EVENTS_COMMIT_INTERVAL * time.Millisecond)
log.Printf("Ender service started\n")
sigchan := make(chan os.Signal, 1)
signal.Notify(sigchan, syscall.SIGINT, syscall.SIGTERM)
log.Printf("Ender service started\n")
tick := time.Tick(intervals.EVENTS_COMMIT_INTERVAL * time.Millisecond)
for {
select {
case sig := <-sigchan:
@ -62,7 +62,4 @@ func main() {
}
}
}
// Config
}

View file