Skip to content

Scalingo/sample-python-celery

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Sample application for Python, using the asychonous worker Celery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published