Skip to content
Snippets Groups Projects
Commit 2f80f6a3 authored by Alex Wiens's avatar Alex Wiens
Browse files

Deploy: Add computational thread limitation

parent d9faca1f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
# activate python virtual environmen
# activate python virtual environment
source "${SCRIPT_DIR}/venv/bin/activate"
# limit number of computational threads
export MKL_NUM_THREADS=1
export NUMEXPR_NUM_THREADS=1
export OMP_NUM_THREADS=1
# exec prule.daemon with config file
exec python3 -u -m prule.daemon --config "${SCRIPT_DIR}/var/prule_daemon.json"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment