Create first version of heuristics service with the same logic as old ender
This commit is contained in:
parent
2b3728d8da
commit
967034a89c
3 changed files with 3 additions and 6 deletions
|
|
@ -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 ]] && {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
}
|
||||
|
|
|
|||
0
backend/services/heuristics/build_hack
Normal file
0
backend/services/heuristics/build_hack
Normal file
Loading…
Add table
Reference in a new issue