-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcron.yaml
More file actions
45 lines (38 loc) · 1.15 KB
/
cron.yaml
File metadata and controls
45 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Google App Engine Cron Configuration
# Schedule periodic tasks
cron:
# Example: Daily cleanup task (if needed)
# - description: "Daily cleanup of temporary data"
# url: /cron/cleanup
# schedule: every day 00:00
# timezone: Africa/Johannesburg
# Example: Hourly health check
# - description: "Hourly health check"
# url: /cron/health-check
# schedule: every 1 hours
# timezone: Africa/Johannesburg
# Example: Weekly reports
# - description: "Weekly usage report"
# url: /cron/weekly-report
# schedule: every monday 09:00
# timezone: Africa/Johannesburg
# Timezone options for South Africa:
# - Africa/Johannesburg
# - UTC (for consistency)
# Schedule syntax examples:
# - every 1 minutes
# - every 5 minutes
# - every 1 hours
# - every day 00:00
# - every monday 09:00
# - 1st,15th of month 00:00
# Note: Deploy this file separately with:
# gcloud app deploy cron.yaml
# Important: Create corresponding endpoints in your application
# to handle these cron jobs. Endpoints should verify that requests
# come from App Engine cron service:
#
# if ($_SERVER['HTTP_X_APPENGINE_CRON'] !== 'true') {
# http_response_code(403);
# exit('Forbidden');
# }