Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update libs and dependancies #12

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ services:

worker:
build: ./project
command: celery worker --app=worker.celery --loglevel=info --logfile=logs/celery.log
command: celery -A worker.celery worker --loglevel=info --logfile=logs/celery.log
volumes:
- ./project:/usr/src/app
environment:
@@ -27,12 +27,9 @@ services:
- web
- redis

redis:
image: redis:6-alpine

dashboard:
build: ./project
command: flower --app=worker.celery --port=5555 --broker=redis://redis:6379/0
command: celery --broker=redis://redis:6379/0 flower --port=5555
ports:
- 5556:5555
environment:
@@ -42,3 +39,6 @@ services:
- web
- redis
- worker

redis:
image: redis:7-alpine
2 changes: 1 addition & 1 deletion project/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pull official base image
FROM python:3.9.5-slim-buster
FROM python:3.11.2-slim-buster

# set work directory
WORKDIR /usr/src/app
11 changes: 11 additions & 0 deletions project/logs/celery.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[2023-04-04 20:51:20,341: INFO/MainProcess] Connected to redis://redis:6379/0
[2023-04-04 20:51:20,349: INFO/MainProcess] mingle: searching for neighbors
[2023-04-04 20:51:21,366: INFO/MainProcess] mingle: all alone
[2023-04-04 20:51:21,380: INFO/MainProcess] celery@b91ce55d009f ready.
[2023-04-04 20:51:25,545: INFO/MainProcess] Events of group {task} enabled by remote.
[2023-04-04 20:51:46,917: INFO/MainProcess] Task create_task[b42da286-790b-473a-b808-68c4dc2cea9f] received
[2023-04-04 20:51:46,929: INFO/ForkPoolWorker-1] Task create_task[b42da286-790b-473a-b808-68c4dc2cea9f] succeeded in 0.005246624999927008s: True
[2023-04-04 20:53:40,257: INFO/MainProcess] Task create_task[2b9ed4cc-1a94-4635-8a50-103d9856ff75] received
[2023-04-04 20:53:50,261: INFO/ForkPoolWorker-1] Task create_task[2b9ed4cc-1a94-4635-8a50-103d9856ff75] succeeded in 10.001274639000258s: True
[2023-04-04 20:55:02,543: INFO/MainProcess] Task create_task[cf5bb1ba-5b9a-464d-9c43-4afed721389f] received
[2023-04-04 20:55:12,547: INFO/ForkPoolWorker-1] Task create_task[cf5bb1ba-5b9a-464d-9c43-4afed721389f] succeeded in 10.001370422000036s: True
5 changes: 5 additions & 0 deletions project/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[pytest]
filterwarnings =
ignore::DeprecationWarning:kombu.*:
ignore::DeprecationWarning:celery.*:
ignore::DeprecationWarning:httpx.*:
19 changes: 10 additions & 9 deletions project/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
aiofiles==0.6.0
celery==4.4.7
fastapi==0.64.0
flower==0.9.7
Jinja2==3.0.3
pytest==6.2.4
redis==3.5.3
requests==2.25.1
uvicorn==0.13.4
aiofiles==23.1.0
celery==5.2.7
fastapi==0.95.0
flower==1.2.0
Jinja2==3.1.2
pytest==7.2.2
redis==4.5.4
requests==2.28.2
uvicorn==0.21.1
httpx==0.23.3