Skip to content

Commit

Permalink
try fix celery+redis
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysmeow committed Jul 24, 2024
1 parent 6d7b82a commit 57666e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
- .env
networks:
- wm-network
restart: always

client:
build: ./client
Expand Down Expand Up @@ -54,9 +55,7 @@ services:
container_name: wm-redis
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
- ./redis.conf:/usr/local/etc/redis/redis.conf
networks:
- wm-network

Expand Down
2 changes: 1 addition & 1 deletion server/scheduler/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# url = "redis://:qwerty@localhost:6379/0"
url = "redis://:qwerty@redis:6379/0"

celery = Celery("WebManagerTasks", broker=url)
celery = Celery("WebManagerScheduler", broker=url)

# redis-server
# celery -A tasks beat -l info
Expand Down

0 comments on commit 57666e7

Please sign in to comment.