summaryrefslogtreecommitdiff
path: root/README.md
blob: f6becfe751843ecc1d487a46036a06847ce2d5d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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

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

## Try it!

You can quickly deploy this app on Heroku:

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)