https://github.com/dori-dev/celery-sample
Sample of using Celery in python.
https://github.com/dori-dev/celery-sample
celery celerybeat python sample
Last synced: 10 months ago
JSON representation
Sample of using Celery in python.
- Host: GitHub
- URL: https://github.com/dori-dev/celery-sample
- Owner: dori-dev
- Created: 2023-04-29T08:02:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-29T08:02:36.000Z (over 2 years ago)
- Last Synced: 2025-03-30T13:37:15.416Z (10 months ago)
- Topics: celery, celerybeat, python, sample
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Sample
Sample of using Celery in python.
#
## Celery Worker
```
celery -A tasks worker -l INFO
```
## Run Tasks
```
python tasks.py
```
## Management GUI for Celery
```
celery flower -A tasks --broker=amqp://guest:guest@localhost:5672//
```
## Celery Beat
```
celery -A tasks beat
```
## Use Another Pools
```
celery -A tasks worker -l INFO --pool=solo --concurrency=1
celery -A tasks worker -l INFO --pool=eventlet --concurrency=500
```
`perfork` => CPU-Bound
`solo` => Whole CPU
`eventlet` => IO-Bound
#
## Links
Download Source Code: [Click Here](https://github.com/dori-dev/celery-sample/archive/refs/heads/master.zip)
My Github Account: [Click Here](https://github.com/dori-dev/)