Repository navigation
Expand file tree
/
Copy pathcrontab.example
More file actions
30 lines (27 loc) · 1.79 KB
/
Copy pathcrontab.example
File metadata and controls
30 lines (27 loc) · 1.79 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
# HAIP cron — example crontab
#
# Install: edit paths/env below, then: crontab scripts/cron/crontab.example
#
# Suggested schedule (adjust to property timezone):
# Night audit: 00:30 daily
# Group cutoffs: 01:00 daily (after night audit)
# RManager (+ A/R): 06:00 daily — owns revenue cadence (do NOT also cron demand/pricing)
# Housekeeping: 08:00 daily
# Cancellation: every 6 hours
# Night-audit anomaly agent: 23:00 daily (before night audit)
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
# Load secrets from a root-owned file (chmod 600). Do not commit real values.
# HAIP_URL=https://pms.example.com
# HAIP_PROPERTY_ID=00000000-0000-4000-8000-000000000001
# KEYCLOAK_URL=https://auth.example.com
# KEYCLOAK_REALM=haip
# KEYCLOAK_CLIENT_ID=haip-cron
# KEYCLOAK_CLIENT_SECRET=replace-me
30 0 * * * set -a && source /etc/haip/cron.env && set +a && /opt/haip/scripts/cron/night-audit.sh >> /var/log/haip/night-audit.log 2>&1
0 1 * * * set -a && source /etc/haip/cron.env && set +a && /opt/haip/scripts/cron/group-cutoffs.sh >> /var/log/haip/group-cutoffs.log 2>&1
0 6 * * * set -a && source /etc/haip/cron.env && set +a && /opt/haip/scripts/cron/agent-runs.sh revenue_manager >> /var/log/haip/agent-revenue.log 2>&1
0 6 * * * set -a && source /etc/haip/cron.env && set +a && /opt/haip/scripts/cron/agent-runs.sh ar_collections >> /var/log/haip/agent-ar.log 2>&1
0 8 * * * set -a && source /etc/haip/cron.env && set +a && /opt/haip/scripts/cron/agent-runs.sh housekeeping >> /var/log/haip/agent-hk.log 2>&1
0 */6 * * * set -a && source /etc/haip/cron.env && set +a && /opt/haip/scripts/cron/agent-runs.sh cancellation >> /var/log/haip/agent-cancel.log 2>&1
0 23 * * * set -a && source /etc/haip/cron.env && set +a && /opt/haip/scripts/cron/agent-runs.sh night_audit >> /var/log/haip/agent-night-audit.log 2>&1