kill_simulation.sh
356 Bytes
#Reseting
sed -i -e "s/CELERY_TEST = True/CELERY_TEST = False/g" pyros/settings.py
sed -i -e "s/.*SIMULATOR_VALUE = .*/SIMULATOR_VALUE = None/g" userSimulator/tasks.py
#Kill web server
fuser -k 8000/tcp
# Delete the test DB
rm -f testdb.sqlite3
cd scripts/
# Stops celery workers
./kill_celery_workers.sh
echo "--------> Simulation ended <----------"