mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
monitor "schemas" queue to run refresh_schema (#3459)
* monitor "schemas" queue to run refresh_schema `refresh_schema` tasks won't run because "schemas" queue isn't consumed with default settings. and it cause leaking redis storage, a "schemas" list is growing with time. this PR fix it, adds "schemas" queue to monitor by celery. * use scheduled_worker for "schemas" queue instead of "adhoc_worker"
This commit is contained in:
committed by
Arik Fraimovich
parent
4999ab5de7
commit
8fe1d33068
@@ -3,7 +3,7 @@ set -e
|
||||
|
||||
worker() {
|
||||
WORKERS_COUNT=${WORKERS_COUNT:-2}
|
||||
QUEUES=${QUEUES:-queries,scheduled_queries,celery}
|
||||
QUEUES=${QUEUES:-queries,scheduled_queries,celery,schemas}
|
||||
|
||||
echo "Starting $WORKERS_COUNT workers for queues: $QUEUES..."
|
||||
exec /usr/local/bin/celery worker --app=redash.worker -c$WORKERS_COUNT -Q$QUEUES -linfo --maxtasksperchild=10 -Ofair
|
||||
|
||||
Reference in New Issue
Block a user