Files
plane/apps/api/bin/docker-entrypoint-webhook-consumer.sh
T

17 lines
366 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$(id -u)" = "0" ]; then
chown -R plane:plane /code/plane/logs
exec su-exec plane "$0" "$@"
fi
python manage.py wait_for_db
# Wait for migrations
python manage.py wait_for_migrations
# Run the processes
python manage.py run_webhook_consumer \
--queue ${WEBHOOK_QUEUE_NAME:-plane.webhook} \
--prefetch ${WEBHOOK_PREFETCH_COUNT:-10}