mirror of
https://github.com/clearlinux/telemetrics-backend.git
synced 2026-09-05 05:11:56 +00:00
21 lines
405 B
Bash
Executable File
21 lines
405 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (C) 2020 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -e
|
|
|
|
LOG_LEVEL=${PROCESSING_LOG_LEVEL:-DEBUG}
|
|
|
|
# Wait for database to be initialized
|
|
until python3 entrypoint.py; do
|
|
>&2 echo "Postgres is unavailable - sleeping"
|
|
sleep 1
|
|
done
|
|
|
|
# Processing loop
|
|
while true
|
|
do
|
|
sleep 2m
|
|
python3 process.py ProcessCrashes --local-scheduler --log-level ${LOG_LEVEL}
|
|
done
|