Skip to content

Commit

Permalink
rename dev_scheduler to dev_worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Lachish committed Jul 8, 2019
1 parent 7cff856 commit f5f707e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ scheduler() {
/usr/local/bin/celery worker --app=redash.worker --beat -s$SCHEDULE_DB -c$WORKERS_COUNT -Q$QUEUES -linfo --max-tasks-per-child=10 -Ofair
}

dev_scheduler() {
dev_worker() {
WORKERS_COUNT=${WORKERS_COUNT:-1}
QUEUES=${QUEUES:-celery}
SCHEDULE_DB=${SCHEDULE_DB:-celerybeat-schedule}
Expand Down Expand Up @@ -51,7 +51,7 @@ help() {
echo "server -- start Redash server (with gunicorn)"
echo "worker -- start Celery worker"
echo "scheduler -- start Celery worker with a beat (scheduler) process"
echo "dev_scheduler -- start Celery worker with a beat (scheduler) process which picks up code changes and reloads"
echo "dev_worker -- start Celery worker with a beat (scheduler) process which picks up code changes and reloads"
echo "celery_healthcheck -- runs a Celery healthcheck. Useful for Docker's HEALTHCHECK mechanism."
echo ""
echo "shell -- open shell"
Expand Down Expand Up @@ -86,9 +86,9 @@ case "$1" in
shift
scheduler
;;
dev_scheduler)
dev_worker)
shift
dev_scheduler
dev_worker
;;
dev_server)
export FLASK_DEBUG=1
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
REDASH_RATELIMIT_ENABLED: "false"
worker:
build: .
command: dev_scheduler
command: dev_worker
volumes:
- type: bind
source: .
Expand Down

0 comments on commit f5f707e

Please sign in to comment.