Run jobs on a schedule
Scheduler calls any web endpoint on a schedule, like a cron job that you never have to host. Let us ping our shop every minute.
Video, 0:54. Serverless.
Steps
- Overview (0:00)
- Every minute, Indian time (0:11)
- Call our service (0:27)
- Enabled (0:34)
- It ran (0:38)
- Called every minute (0:42)
- Try it yourself (0:49)
Transcript
Scheduler calls any web endpoint on a schedule, like a cron job that you never have to host. Let us ping our shop every minute.
Under Integration, open Scheduler and create a job. Name it ping-shop. The schedule uses standard cron syntax: five stars means every minute. We set the time zone to India.
The target is our shop-web service, called with a GET request. Create the job.
The job is enabled, and shows when it will run next.
A minute later, it has run.
And in the service's own logs, you can see the scheduler's calls arrive on the minute, every minute.