Skip to content

Commit

Permalink
Update readme for options for cron or every
Browse files Browse the repository at this point in the history
  • Loading branch information
simonoff committed Feb 10, 2012
1 parent 69d2d0a commit 7b98b64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,15 @@ defined. If you're getting "uninitialized constant" errors, you probably
need to either set the queue in the schedule or require your jobs in your
"resque:setup" rake task.

You can provide options to "every" or "cron" via Array:

clear_leaderboards_moderator:
every: ["30s", :first_in => '120s']
class: CheckDaemon
queue: daemons
description: "This job will check Daemon every 30 seconds after 120 seconds after start"


NOTE: Six parameter cron's are also supported (as they supported by
rufus-scheduler which powers the resque-scheduler process). This allows you
to schedule jobs per second (ie: "30 * * * * *" would fire a job every 30
Expand Down

0 comments on commit 7b98b64

Please sign in to comment.