An open API service indexing awesome lists of open source software.

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.

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/)