Skip to content

Commit

Permalink
Replace every with cron in stating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
snmgian committed Apr 24, 2017
1 parent 05ce387 commit b63f287
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end

:schedule:
hello_world:
every: 1m # Runs once per minute
cron: '0 * * * * *' # Runs once per minute
class: HelloWorld
```

Expand Down Expand Up @@ -104,10 +104,10 @@ The schedule is configured through the `:schedule` config entry in the sidekiq c
``` yaml
:schedule:
CancelAbandonedOrders:
every: 5m # runs every 5 minutes, job's class: CancelAbandonedOrders
cron: '0 */5 * * * *' # Runs when second = 0, every 5 minutes

queue_documents_for_indexing:
every: 1h # runs every 1 hour
cron: '0 0 * * * *' # Runs every hour

# By default the job name will be taken as worker class name.
# If you want to have a different job name and class name, provide the 'class' option
Expand Down

0 comments on commit b63f287

Please sign in to comment.