Write directory title here
- 1. Asynchronous tasks:
- 2. Scheduled tasks:
- 3. Introduction to Celery
-
- Features:
- Celery consists of three parts:
- working principle:
- Install Celery
- Choose a Broker: RabbitMQ
- The difference between Kafka and RabbitMQ:
- define a task
- define the second task
- Define a producer (producer) to call asynchronous tasks
- Start the celery service
- Define a class that gets the result
- timed task
Views are producers
1. Asynchronous tasks:
These are tasks that are put aside by the engine and do not enter the main thread, but enter the task queue. The code that enqueues the asynchronous task ÿ