Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eitsxiaozhai/celery_task
This is a project that deploys celery separately from the main program, allowing the celery code to be abstracted into a new docker, reducing the coupling of the project
https://github.com/eitsxiaozhai/celery_task
celery cicd docker fastapi
Last synced: 10 days ago
JSON representation
This is a project that deploys celery separately from the main program, allowing the celery code to be abstracted into a new docker, reducing the coupling of the project
- Host: GitHub
- URL: https://github.com/eitsxiaozhai/celery_task
- Owner: EITSxiaozhai
- Created: 2024-11-09T02:09:40.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T02:14:55.000Z (3 months ago)
- Last Synced: 2024-11-26T00:19:42.757Z (2 months ago)
- Topics: celery, cicd, docker, fastapi
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Celery_docker 部署Demo
该项目利用docker-python去部署celry,将Fastapi和Celery进行分离部署,使用同一个redis和rabbitmq,可以让后端api生成任务id,让celery-docker去执行# 如何添加任务
在task.py文件中去添加自己的任务代码,如发送邮件,io操作# Celery-beat
定时任务部署也可以新启动一个docker,按照上面的代码进行部署