From b63f2871dae785e5aaee9cc4a48247b1e7073919 Mon Sep 17 00:00:00 2001 From: gian Date: Mon, 24 Apr 2017 12:17:27 -0300 Subject: [PATCH] Replace `every` with `cron` in stating examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c63ed258..71b8d9c3 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ end :schedule: hello_world: - every: 1m # Runs once per minute + cron: '0 * * * * *' # Runs once per minute class: HelloWorld ``` @@ -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