Celery Example

Execute background tasks with Celery. Submits tasks and shows results using JavaScript.

Add

Start a task to add two numbers, then poll for the result.



Result:


Block

Start a task that takes 5 seconds. However, the response will return immediately.


Process

Start a task that counts, waiting one second each time, showing progress.