Examples and run asynchronous tasks with the set and

What is synchronization: Click the Run button, use cases run, has been waiting for the results of the use cases return
what is asynchronous: click on the Run button immediately return a message, use case has to run, and see the results on the line

celery installation and use

celery is a python development of distributed task scheduling module, the interface is simple, easy implementation, five minutes to write an asynchronous send e-mail service, celery itself does not contain a message service that uses a third-party messaging services to transfer tasks, currently, celery support the news service has RabbitMQ, redis even a database, redis is the best choice, pip install Celery, you can successfully install version 4.4.2

Guess you like

Origin www.cnblogs.com/laosun0204/p/12637568.html