To help your sites run more efficiently, you must conduct regular website maintenance. You can automate maintenance tasks or jobs to run at scheduled intervals using the Scheduled Jobs page in the Cloud Platform user interface. This functionality is also referred to as a cron job.
Scheduled jobs are specific to the environment where they’re created. Although you can’t create a job executing a command across several environments based on the same schedule, you can create a job for each environment, with each job using the same command line and schedule.
To add a scheduled job:
- Sign in to the Cloud Platform user interface.
- Go to Codebases and select a specific codebase.
Click Environment and select an environment for which you want to create a cron job.
- Click Scheduled Jobs.
- Click Add Job and perform the steps in Using scheduled jobs to support your application.