#!/usr/bin/env bash
set -e

# Processes the CA indexing queue

INDEXING_PID=$$
echo "Search indexing queue running with pid $INDEXING_PID"
nice -n19 php -d memory_limit="$WORKER_INDEXING_MEMORY_LIMIT" "$APP_ROOT"/vendor/bin/indexer
