32 lines
849 B
Markdown
32 lines
849 B
Markdown
# Celery
|
|
|
|
Celery is an open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.
|
|
|
|
> [wikipedia.org/wiki/Celery_Task_Queue](https://en.wikipedia.org/wiki/Celery_Task_Queue)
|
|
|
|
# How to use this image
|
|
|
|
## start a celery worker (RabbitMQ Broker)
|
|
|
|
```console
|
|
$ docker run --link some-rabbit:rabbit --name some-celery -d celery
|
|
```
|
|
|
|
### check the status of the cluster
|
|
|
|
```console
|
|
$ docker run --link some-rabbit:rabbit --rm celery celery status
|
|
```
|
|
|
|
## start a celery worker (Redis Broker)
|
|
|
|
```console
|
|
$ docker run --link some-redis:redis -e CELERY_BROKER_URL=redis://redis --name some-celery -d celery
|
|
```
|
|
|
|
### check the status of the cluster
|
|
|
|
```console
|
|
$ docker run --link some-redis:redis -e CELERY_BROKER_URL=redis://redis --rm celery celery status
|
|
```
|