Recurring schedule using delayed_job

Is it possible to do the following using delayed_job:

1. Define a class called `Tasks`
2. Have a method in Tasks run after every 5 minutes: `Tasks.do_processing`
3. When the next 5 minute cycle comes around, then only run `Tasks.do_processing` if the *previous* `do_processing` has completed

Is this something I have to create on my own or can delayed_job (or some other gem/plugin) do this?

**Ps.** I know about OS-level cron jobs, but if I used that then it would mean that each time the cron "fired" it would
re-load the entire Rails environment, whereas delayed_job only needs to load it once.

Recurring schedule using delayed_job
===


Is it possible to do the following using delayed_job:

1. Define a class called `Tasks`
2. Have a method in Tasks run after every 5 minutes: `Tasks.do_processing`
3. When the next 5 minute cycle comes around, then only run `Tasks.do_processing` if the *previous* `do_processing` has completed

Is this something I have to create on my own or can delayed_job (or some other gem/plugin) do this?

**Ps.** I know about OS-level cron jobs, but if I used that then it would mean that each time the cron "fired" it would
re-load the entire Rails environment, whereas delayed_job only needs to load it once.
