基于python的任务调度系统,可实现定时调度、主动投递任务功能,提供restful api格式投递任务
Python3.6
celery
django
django-celery
django-celery-results
flower
alpine3.6[gcc,linux-headers,musl-dev]
uwsgi
python3.6
celery4.1.0
Django==2.0.1
python包:redis auth msgpack librabbitmq django-celery sqlalchemy django-celery-results flower django-celery-beat
docker run --name http -d -v /data/celery/task/:/home/www/task -p 80:80 nginx:1.13.8-alpine-perl
docker exec -it http sh
server {
listen 80;
server_name localhost;
location / {
include uwsgi_params;
#uwsgi_pass 192.168.110.128:6000;
uwsgi_pass celery:6000;
uwsgi_param UWSGI_SCRIPT task.wsgi;
uwsgi_param UWSGI_CHDIR /home/www;
index index.html index.htm;
client_max_body_size 35m;
}
location /static {
alias /home/www/task/static;
}
}
-A task表示执行task应用
docker run -d --name celery -p 5555:5555 -p 6000:6000 -v /home/wwwroot/uniii/task-schedule/:/usr/src/celery/ ainow/celery -A task
cd /usr/src/task
python manage.py collectstatic
curl localhost
curl localhost/admin
#flower
curl localhost:5555
Content type
Image
Digest
Size
85.1 MB
Last updated
over 8 years ago
docker pull ainow/celery