Tiago
Tiago

Reputation: 9557

Cron-like scheduler, something between cron and celery

I'd like to run periodic tasks on my django project, but I don't want all the complexity of celery/django-celery (with celerybeat) bundled in my project.

I'd like, also, to store the config with the times and which command to run within my SCM.

My production machine is running Ubuntu 10.04.

While I could learn and use cron, I feel like there should be a higher level (user friendly) way to do it. (Much like UFW is to iptables).

Is there such thing? Any tips/advice?

Thanks!

Upvotes: 3

Views: 1936

Answers (2)

Cerin
Cerin

Reputation: 64739

There are several Django-based scheduling apps, such as django-chronograph and django-chroniker and django-cron. I forked django-chronograph into django-chroniker to fix a few bugs and extend it for my own use case. I still use Celery in some projects, but like you point out, it's a bit overcomplicated and has a large stack.

Upvotes: 2

niko
niko

Reputation: 1866

In my personal opinion, i would learn how to use cron. This won't take more than 5 to 10 minutes, and it's an essential tool when working on a Linux server.

What you could do is set up a cronjob that requests one page of your django instance every minute, and have the django script figure out what time it is and what needs to be done, depending on the configuration stored in your database. This is the approach i've seen in other similar applications.

Upvotes: 1

Related Questions