2

I have a python3 based command line script which does the job of report generation for services running online. I am able to successfully schedule it as a cronjob using crontab and some shell script to run that script on weekly basis. But now, I wish to update and make this script run as a cronjob on gcloud. Can you provide me any ideas or references, from where I will be able to achieve that?

Note that platform is restricted to google cloud only.

Thanks!

1 Answer 1

2

You can use App Engine Cron Service:

The App Engine Cron Service allows you to configure regularly scheduled tasks that operate at defined times or regular intervals. These tasks are commonly known as cron jobs. These cron jobs are automatically triggered by the App Engine Cron Service. For instance, you might use a cron job to send out an email report on a daily basis, or to update some cached data every 10 minutes, or refresh summary information once an hour.

Create a service like /tasks/summary and schedule it to run each week Monday morning via cron.yaml:

cron:
- description: weekly summary job
  url: /tasks/summary
  target: beta
  schedule: every monday 09:00
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.