views:

299

answers:

2

What's the best way to create recurring tasks?

Should I create some special syntax and parse it, kind of similar to Cronjobs on Linux or should I much rather just use a cronjob that runs every hour to create more of those recurring tasks with no end?

Keep in mind, that you can have endless recurring tasks and tasks with an enddate.

+1  A: 

Quartz is an open source job scheduling system that uses cron expressions to control the periodicity of the job executions.

Mads Hansen
+1  A: 

My approach is always "minimum effort for maximum effect" (or best bang per buck).

If it can be done with cron, why not use cron? I'd consider it wasted effort to re-implement cron just for the fun of it so, unless you really need features that cron doesn't have, stick with it.

paxdiablo