Sample application for Python, using the asychonous worker Celery
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates
.gitignore
Dockerfile
Procfile
README.md
app.py
docker-compose.yml
requirements.txt
runtime.txt
scal_task.py
scalingo.json

README.md

Sample Python/Celery application

Running Locally

$ docker-compose up

Running

This application is composed of three containers:

  • The Celery server which takes tasks and return result
  • The Flask server which runs the webserver that sends tasks to the Celery server and display results
  • A Redis server

The application will be available on http://localhost:3000

Deploying on Scalingo

Create an application on https://scalingo.com with a Redis addon, then:

git remote add scalingo git@scalingo.com:<name_of_your_app>.git
git push scalingo master

By default Scalingo only launches your web container. To launch your worker container, you'll need to go to your dashboard and set your worker container amount to 1.

And that's it!

The application is running at this URL: https://sample-python-celery.scalingo.io

Deploy in one click

Deploy to Scalingo

Links

http://www.celeryproject.org https://Redis.io http://flask.pocoo.org