Google App Engine Deploy Cron Job (Python 2.7)

Python 2.7

Sample cron.yaml.

cron:# every day- description: daily refresh home cache  url: /cron_jobs/refresh_home_cache  # schedule: every 60 minutes  schedule: every 24 hours# every hour- description: daily refresh caches  url: /cron_jobs/refresh_caches  schedule: every 1 hours# every week at specific time at timezone- description: weekly sitemap  url: /cron_jobs/generate_sitemap  schedule: every monday 09:00  timezone: Asia/Kuala_Lumpur  target: fileupload# every day at specific time- description: daily refresh game leagues  url: /cron_jobs/generate_game_leagues  schedule: every day 01:00

NOTE: Schedule App Engine Cron Task Hourly At Specific Minute.

Deploy

gcloud app deploy --project PROJECT_ID cron.yaml

NOTE: You might be interested with Cloud Scheduler which support HTTP, Pub/Sub and App Engine HTTP.

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.