#!/bin/bash

redis_host=$(cat constants.json | jq -r '.redis.host')
redis_port=$(cat constants.json | jq -r '.redis.port')
redis_queue=$(cat constants.json | jq -r '.redis.queue')

redis-server --port $redis_port &

rqworker $redis_queue &

rqscheduler --host $redis_host --port $redis_port &

python3 -m scheduler.scheduler

tail -f /var/log/evidence_collector.log