Flask Celery 4.1.0 Blueprint
mkdir flaskdemo
2. pyvenv venv
3. source venv/bin/active
)pip install requirements.txt
)jobs/celeryconfig.py
MAIL_USERNAME
and MAIL_PASSWORD
to 163.com . Set environment variables: (this demo use 163.com,use other email SMTP server by yourself configued in
export MAIL_USERNAME='your_163_email_addr'
export MAIL_PASSWORD='your_163_email_pwd'
config.py
)python run.py
)celery worker -A celery_worker.celery -l=info
)celery beat -A celery_worker.celery -l=info
)celery worker -B -A celery_worker.celery -l=info
) instead of step 7 and step 8http://localhost:5000/
test.