Back to Flask

Celery Example

examples/celery/src/task_app/templates/index.html

3.1.3406 B
Original Source

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.

A
B

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.

Total