Reputation: 17282
I want to run a cron on App Engine every 5 minutes, but only on weekdays.
cron:
- description: run
url: /cron/run
schedule: */5 * * * 1-5
It gives the error:
expected alphabetic or numeric character, but found '/'
Upvotes: 0
Views: 492
Reputation: 1726
Since I was here to find out how to run a cron on a specific time on Weekdays,
schedule: every mon,tue,wed,thu,fri 7:00
This worked for me, but if you want to specify both date period and the time period, you have to use Zig Mandel's solution. Hope it helps.
Upvotes: 1
Reputation: 19835
Its not possible just using cron. If what you want is saving instance hours, you can instead schedule a chron to run at midnight daily. It checks if its a weekday and if so it runs a taskqueue. The taskqueue starts another taskqueue 5 minutes ahead and also does its work. Taskqueue stops as soon as day changes.
Upvotes: 0