Run Scheduled Jobs
Use the @schedule decorator with a five-field cron expression or one of the predefined schedules below. Schedules use UTC. Calling .remote() executes one invocation; deploying enables the recurring schedule.
To schedule it, run beam deploy:
You’ll see the upcoming jobs listed in the console.
Scheduling Options
The following predefined schedules can be used in the when parameter:
Stopping Scheduled Jobs
You can stop a scheduled job from running by using the beam deployment stop CLI command.
First, list the upcoming jobs with beam deployment list:
Then reference the Deployment ID to stop a job:
Gotchas
If you deploy a new version of your scheduled job, the previous schedule will be disabled.