Giter Club home page Giter Club logo

heroku-periodical's Introduction

Heroku Periodical

A skeleton app based on Heroku/Python/Celery that runs a single worker executing periodical tasks.

This skeleton can be used to quickly run periodical tasks on the Heroku platform using an arbitrary timedelta or crontab entry. The code is based on a single worker which runs with an integrated celery beat scheduler to avoid using a separate process just for scheduling. Redis is used as the broker, based on the redistogo:nano plan.

Deployment

$ heroku create
$ heroku addons:add redistogo:nano
$ git push heroku master
$ heroku ps:scale worker=1

Try it now!

You can single-click deploy this app using the awesome Heroku Button:

Deploy to Heroku

heroku-periodical's People

Contributors

yuvadm avatar

Stargazers

Songhui Yue avatar Phil Esterman avatar 안성현 avatar k avatar Anton Kiselev avatar aubsw avatar  avatar Eslam λ Hefnawy avatar Grant McGovern avatar Kaitlin Devine avatar Stefan Jenkner avatar Ogre avatar Andres Douglas avatar Vladimir Keleshev avatar Carlo Zamagni avatar  avatar Jon Danao avatar Nick Snell avatar Rendong Chen avatar Kevin avatar Matías Agustín Méndez avatar Tristan Escalada avatar Ido Rosen avatar Luiz Boaretto avatar

Watchers

 avatar Rendong Chen avatar  avatar

heroku-periodical's Issues

max number of clients reached

I am getting redis.exceptions.ConnectionError: max number of clients reached continuously.

Caused by connection lost from redis
WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...

Restart flow is b0rked

Pushing new code and restarting the worker process does not flow smoothly.

Worker process must be scaled back to 0 before pushing new code, since processes do not terminate immediately.

Two common symptoms are:

  • hanging worker process even when scaling back
  • redis reaches max connections after process restart

Maybe @kennethreitz can help out on this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.