/tornado-celery

An example integration of Tornado Web Sockets with Celery Tasks

Primary LanguagePython

Tornado Web Sockets + Celery Tasks

This repository is an example implementation of Tordado websockets used in conjuction with Celery tasks. This particular implementation uses Redis as the Celery message broker.

In the (trivial) example, a user can select two numbers from a dropdown and calculate the total. The calculation is sent to a "long-running" task. Once the task completes, a chain of yields and futures resolve and the value is sent via Websockets to the UI.

Usage

I've included a Docker configuration for this example.

Assuming you have Docker (and Docker Compose), simply run docker-compose up.