Flask celery realize the transmission timing tasks
Open conditions
Flask celery task when the transmission timing, to open simultaneously redis database, celery worker there celerybeat, to open a plurality of terminals
Redis database open method:
profile open method (I): sudo redis-server /etc/redis/redis.conf
Celery worker open the command : $ celery -A project name worker --loglevel = info
Note: The name of the project is to create an object file celery
Celerybeat open command : celery -A project name beat --loglevel = info
Note: The name of the project is to create celery object database files open method
-L INFO detailed parameters can be output task information.
celery default will open four threads to handle the task, the task parameters -c can open more threads.
Parameters -beat: when performing regular tasks, Celery can be done by celerybeat process. Celerybeat continues operating, once the need to perform a timed task, put Celerybeat added to the queue for periodic tasks.