Reputation: 31
I currently have 5 * * * *
set as the Frequency of my Cloud Scheduler job. From looking at the documentation, I expect it to run every 5 minutes; however, I see the results by each hour instead.
What is wrong?
Upvotes: 2
Views: 7117
Reputation: 592
You could use this place here to interactively test your crontab times...
And use
*/5 * * * *
for every 5 minutes
, means at minutes 0,5,10,15,...
I also like
3-57/5 * * * *
for every 5 minutes starting with minute 3
, meaning at minutes 3, 8, 13, 18,...
Upvotes: 8
Reputation: 76010
Fun fact: If you want to run your job every 5 minutes, write in the schedule field every 5 minutes
!!
In fact, the schedule format is compliant with the previous AppEngine CRON format that uses full text description for CRON scheduling.
But Google has introduced Linux CRON format, because it's more known by everybody and more flexible (and I guess easier to parse!)
Upvotes: 6