Run job every 10 minutes with Clockwork

Benjamin Humphrey

I would like a job to run every 10 minutes in Clockwork, but I want it to run 6 times an hour, at 00, 10, 20, 30, 40, and 50 minutes past.

In the Clockwork readme it says you can use wildcards for hour and minute values:

Wildcards for hour and minute are supported:

every(1.hour, 'reminders.send', :at => '**:30')
every(10.seconds, 'frequent.job', :at => '9:**')

However when I tried at: '**:*0' it gave me an error.

Sampat Badhe

Hello @benjamin seems to be wildcards characters can be used either or hours or minutes, and seems to be Clockwork doesn't support partial wildcards like **:*0

you can pass array to at option to achieve your goal You can set more than one timing

every(10.seconds, 'reminders.send', :at => ['**:00', '**:10', '**:20', '**:30', '**:40', '**:50']) 

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Run Cron job every 10 minutes between two hours

Run Cron Job Every 15 Minutes in specific time and every day

Splunk: Schedule alert to run every 10 minutes

how to run a script in every 10 minutes

Run a cron job every 5 minutes between two times

How would I get a cron job to run every 30 minutes?

Run Cron job every N minutes plus offset

Quartz Scheduler for java- How to run job every 5 minutes

How to run CRONJob every 7 minutes after every 10 mins?

Is there a way with rufus-scheduler to schedule a job every 5 minutes, starting at the completion of the last job run?

How to run some action every few seconds for 10 minutes in rails?

run code every 10 minutes when app is Terminate

How to setup CRON job to run every 10 seconds in Linux?

How to run cron job every one hour and 10 min

How to run a cron job every 10 seconds in ruby on rails

ECS/Fargate - can I schedule a job to run every 5 minutes UNLESS its already running?

Can a cron job be set to run every hour at 5 minutes after the hour?

Getting a cron job to run every 30 minutes - using cron.hourly?

Run cron job every 2 minutes except the first minute "0" of the first hour "0"

Problem with cron job which has to run every 15 minutes but not at 15,30,45

Why is my quartz job not getting triggered according to given cron expression, instead firing every 10 minutes?

Run Cron every 2 minutes in 30 minutes?

How to run Clockwork in Heroku

Cronjob to run every 30 minutes

Job seems to run as Fire and Forget. Database activity continues for up to 10 minutes after success status

Cron job every 5 minutes before 30 minutes

Run thread 20 minutes after every run

Run Azure Function every 10 minutes starting at 1 second before each 00:x0

JQuery run every 5 minutes past the hour 5,10,15...55